Zachariah
18 Mar 2009, 00:22
Hello,
I took on a task to make bookmarksite operate with a few more features and ended up also creating data for meta description. The code needs some optimization, but you will get the idea.
The point was to get "pagetext" data from the 1st post in the thread to display on showthread.php.
In file includes\function.php, find function: " fetch_threadinfo"
FIND:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
REPLACE WITH:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
ABOVE:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
ABOVE:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
BELOW:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This will create $threadinfo['preview'] within showthread.php.
- This value can be added to the meta tag description in the $headerinclude to give each thread something other than $thread['title'].
We can also edit showthread.php
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Replace:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This will allow {DESCRIPTION} to be added to be added to submitting bookmark URL's to fill out the textarea on submission vs. copy and paste.
EX: Digg
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I took on a task to make bookmarksite operate with a few more features and ended up also creating data for meta description. The code needs some optimization, but you will get the idea.
The point was to get "pagetext" data from the 1st post in the thread to display on showthread.php.
In file includes\function.php, find function: " fetch_threadinfo"
FIND:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
REPLACE WITH:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
ABOVE:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
ABOVE:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
BELOW:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This will create $threadinfo['preview'] within showthread.php.
- This value can be added to the meta tag description in the $headerinclude to give each thread something other than $thread['title'].
We can also edit showthread.php
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Replace:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This will allow {DESCRIPTION} to be added to be added to submitting bookmark URL's to fill out the textarea on submission vs. copy and paste.
EX: Digg
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------