View Full Version : First post on every page of thread.
vBintense
08-04-2005, 10:00 PM
I had a use for it, so I thought I would share it.
Requires no file edits (Thanks Kirby!).
Adds no quarys when viewing threads :)
This is something like here on vbulletin.org , it allows you to select forums where the first post of the thread is shown thru out the thread.
It uses stock template looks now , if someone wishes to make a template and share it feel free.
I will offer support as I can.
Ps. If you install this hack please click the install :nervous:
Templates for first post:
https://vborg.vbsupport.ru/showpost.php?p=762716&postcount=124
https://vborg.vbsupport.ru/showpost.php?p=819476&postcount=161
Asterik
08-05-2005, 09:54 PM
Oh man, just what I needed. I couldn't wait for it to be ported! :D Thanks ALOT :).
vBintense
08-05-2005, 09:56 PM
Oh man, just what I needed. I couldn't wait for it to be ported! :D Thanks ALOT :).
No trouble at all, I take it the install worked easy ? First hack release so nervious lol
Barakat
08-05-2005, 10:02 PM
wowow thats what i was waitting for
Asterik
08-05-2005, 10:04 PM
For some reason, it won't work with Geshi. It'll give me this: http://www.programmersforums.com/showthread.php?p=51#post51
vBintense
08-05-2005, 10:05 PM
Did you add the new template ?
Asterik
08-05-2005, 10:08 PM
Did you add the new template ?
Im so embarrassed :( lol.
::EDIT:: it works flawlessly, thank you :).
vBintense
08-05-2005, 10:11 PM
Im so embarrassed :( lol.
::EDIT:: it works flawlessly, thank you :).
It happens ;) , I just refreshed that links and looks as though that solved the issue. And most welcome, glad others can use it (and the instructions worked lol)
Asterik
08-05-2005, 11:11 PM
It seems that the template is uncached because if you goto: http://www.programmersforums.com/showthread.php?p=51#post51 and scroll to the bottom, it seems to be adding a query?
::EDIT:: it says this only for me but:
Page generated in 0.20585 seconds with 10 queries (1 queries for uncached templates)
Uncached templates: postbit_first (1)
vBintense
08-05-2005, 11:24 PM
Ok , I am looking into it now (I know how to do it hard code, but I will find the plugin and update it with update instructions in a few)
Asterik
08-05-2005, 11:26 PM
Ok , I am looking into it now (I know how to do it hard code, but I will find the plugin and update it with update instructions in a few)
Thanks, the plugin system confuses me alot but... yea it can be done hard coded easily enough.
vBintense
08-05-2005, 11:59 PM
Update on a small problem with template cache ,I fixed the zip if you already downloaded you can use this xml in 'plugins' not in product and it will fix it.
Barakat
08-06-2005, 02:10 AM
what about the attachments ! hope u do it soon
vBintense
08-06-2005, 02:11 AM
Attachments should show in the first post (if it had attachments) I will go check.
vBintense
08-06-2005, 02:24 AM
what about the attachments ! hope u do it soon
Fixed the zip and if you installed already here is the change (thanks for pointing it out)
open showthread.php find if($forum['showfirstpost']==1){
$postids = "post.postid IN (0" . ", " . $thread['firstpostid'] . $ids . ")";
} Delete it, then find $postids = "post.postid IN (0" . $ids . ")"; before it add if($forum['showfirstpost']==1){ $ids = $ids . ', ' . $thread['firstpostid'];}
Done now attachments work :)
Boofo
08-06-2005, 02:35 AM
The file edit can't be done via a plug-in?
vBintense
08-06-2005, 02:37 AM
None that I have found effective. If you look at the showthread.php you will find no hooks inbetween where it 'has' to be called with out adding a quary.
So I went with this option one line of code adding is better then one quary ;)
Boofo
08-06-2005, 02:38 AM
Maybe Kirby will come to the rescue. ;)
vBintense
08-06-2005, 02:39 AM
/me hides from the all knowing Kirby
But I still think one line added is not too bad, yet if someone can offer a more viable solution using hooks I am willing to listen.
Boofo
08-06-2005, 02:42 AM
No, sir, it isn't bad at all. But no file edits are even better. ;)
vBintense
08-06-2005, 02:43 AM
No, sir, it isn't bad at all. But no file edits are even better. ;)
Yes, I agree but no added quary owns all ;)
Boofo
08-06-2005, 02:44 AM
Did you really think I wouldn't be ready for this? LOL
But no added query and no file eidt is the best! ;)
vBintense
08-06-2005, 02:46 AM
* vBintense kicks boofo out of my thread until he clicks intall !!!
I did look though , I may be blind but I could not find a way not to edit the file ;)
Boofo
08-06-2005, 02:51 AM
And there may ne no way around it. But if there is a way, Kirby is the one who will find it. ;)
* Boofo will install when the file edit gets taken care of or Kirby can't find a way to do it. ;)
vBintense
08-06-2005, 03:10 AM
* vBintense looks for the all knowing Kirby to point him into this thread :)
Logikos
08-06-2005, 03:27 AM
* Logikos clicks install because I will use this later. File edit or not :)
chanhlinh
08-06-2005, 06:14 AM
Thanks a lot! You're my Hero :)
Andreas
08-06-2005, 02:10 PM
Guess what, I hate File Edits :D
Hook: showthread_query
if ($forum['showfirstpost'])
{
$hook_query_where .= " OR post.postid = $thread[firstpostid]";
}
This does show the first Post on all Pages. However, if it has attachments they will only be shown on the first Page.
Don't think there is a way to get this working too without a File Edit, but i'll take a further look.
Logikos
08-06-2005, 02:13 PM
Guess what, I hate File Edits :D
Hook: showthread_query
if ($forum['showfirstpost'])
{
$hook_query_where .= " OR post.postid = $thread[firstpostid]";
}
KirbyDE to the rescue!!!!!!one :)
damm, almost :(
Andreas
08-06-2005, 02:45 PM
After looking over the Code for a while, I found a solution that also works for Attachments :)
Hook: showthread_post_start
if ($forum['showfirstpost'] AND $threadedmode == 0 AND $thread['attach'])
{
// Backup
$thread['hasattach'] = $thread['attach'];
unset($thread['attach']);
}
Hook: showthread_query
if ($forum['showfirstpost'])
{
$ids .= ",$thread[firstpostid]";
$postids = "post.postid IN (0" . $ids . ")";
if ($thread['hasattach'])
{
$attachments = $db->query_read("
SELECT dateline, thumbnail_dateline, filename, filesize, visible, attachmentid, counter,
postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize,
attachmenttype.thumbnail AS build_thumbnail, attachmenttype.newwindow
FROM " . TABLE_PREFIX . "attachment
LEFT JOIN " . TABLE_PREFIX . "attachmenttype AS attachmenttype USING (extension)
WHERE postid IN (-1" . $ids . ")
ORDER BY attachmentid
");
$postattach = array();
while ($attachment = $db->fetch_array($attachments))
{
if (!$attachment['build_thumbnail'])
{
$attachment['hasthumbnail'] = false;
}
$postattach["$attachment[postid]"]["$attachment[attachmentid]"] = $attachment;
}
// Restore
$thread['attach'] = $thread['hasattach'];
unset($thread['hasattach']);
}
}
What it does:
By unsetting $thread['attach'] in showthread_post_start, the original $attachments query will not be executed.
Then the Plugin on showthread_query runs this Query - with the Postid for the First Post and then restores the original Value for further processing.
vBintense
08-06-2005, 02:57 PM
I will try that in a bit , but looking at the second hook code it looks like should be
if ($forum['showfirstpost'])
{
$ids .= ",$thread[firstpostid]";
}
$postids = "post.postid IN (0" . $ids . ")";
if ($thread['hasattach'])
{
$attachments = $db->query_read("
SELECT dateline, thumbnail_dateline, filename, filesize, visible, attachmentid, counter,
postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize,
attachmenttype.thumbnail AS build_thumbnail, attachmenttype.newwindow
FROM " . TABLE_PREFIX . "attachment
LEFT JOIN " . TABLE_PREFIX . "attachmenttype AS attachmenttype USING (extension)
WHERE postid IN (-1" . $ids . ")
ORDER BY attachmentid
");
$postattach = array();
while ($attachment = $db->fetch_array($attachments))
{
if (!$attachment['build_thumbnail'])
{
$attachment['hasthumbnail'] = false;
}
$postattach["$attachment[postid]"]["$attachment[attachmentid]"] = $attachment;
}
// Restore
$thread['attach'] = $thread['hasattach'];
unset($thread['hasattach']);
} With the first if being closed right off, other wise if it is not a show first post it would not show attachments on normal threads?
Andreas
08-06-2005, 03:01 PM
Edited my last post.
The first Hook was missing a check for $forum['showfirstpost']
vBintense
08-06-2005, 03:02 PM
kk , may I use your change in my update later?
Andreas
08-06-2005, 03:04 PM
Feel free to do whatever you want with the Code :)
vBintense
08-06-2005, 03:14 PM
Many thanks (will test it out, then update once I am more awake).
* vBintense bows down to Kirbys hook knowledge and gets ready to invite boofo back into the thread
;)
vBintense
08-06-2005, 05:40 PM
Update: Thanks to Kirby the file edit is no longer needed, if you have installed before now just simply remove the file edit and upload this xml to 'plugins' not to products.
Now that this does not use file edit maybe a mod can move it to plugins?
The zip has been updated with the new product.
Andreas
08-06-2005, 05:47 PM
Moved :)
vBintense
08-06-2005, 05:48 PM
I tryed it , via the plug in, they connect to the product (looking at the plugin xml) so it should all tie in should it not?
Andreas
08-06-2005, 05:50 PM
Yes. AFAIK older Versions did not export the Product, but this XML contains it and therefore they will attach. Already removed the sentence from my last Post before you posted ;)
vBintense
08-06-2005, 05:52 PM
I posted to fast then !! :)
Thanks for moving it Kirby , also for teaching me something new about plugins :)
Boofo
08-06-2005, 10:38 PM
* Boofo takes a bow as thanks insane-topics and Kirby for doing their magic. ;)
vBintense
08-06-2005, 10:45 PM
* vBintense welcomes Boofo back to the thread, and says most welcome.
I got the most out of this though, I learned a few things ;)
Boofo
08-06-2005, 10:49 PM
* insane-topics welcomes Boofo back to the thread, and says most welcome.
I got the most out of this though, I learned a few things ;)
So ... then ... that would make me a teacher by Proxy, right? ;)
chanzero
08-07-2005, 03:55 AM
i uploaded the plugin and updates but i don't see where in my forum admin i can indicate which forums use the plugin? i must be missing something?
vBintense
08-07-2005, 10:02 AM
i uploaded the plugin and updates but i don't see where in my forum admin i can indicate which forums use the plugin? i must be missing something?
Forum manager , edit the forum you want to use it in, and use the yes / no select at the bottom :)
chanzero
08-07-2005, 04:39 PM
Forum manager , edit the forum you want to use it in, and use the yes / no select at the bottom :)
i tried that but there is no option there. the last option at the bottom is "Show this Forum and Child Forums on the Forum Jump Menu"
attached is a screenshot of my plugins (the top one is yours although it doesn't show the title for some reason)
thanks
vBintense
08-07-2005, 04:41 PM
It looks as though you did not install the main 'product'
phlogiston
08-07-2005, 04:44 PM
Working perfectly for me straight from the box today - goodstuff (Y)
Although... ;)
On the second and further pages the $post[postcount] shown isn't technically correct,
the attached .xml is how I sorted such a minor cosmetic thing, shared for others and can be included in the zip if it seems sensible :)
**edit**
removed my version as insane-topics' is nicer & cleaner: 751527
vBintense
08-07-2005, 04:47 PM
The reason for the post count on first post , second page is due to it is a stock template.
I may do some template work later but in all rights it needs no post number on it, such as vb.org does not show a post number on theirs.
chanzero
08-07-2005, 04:54 PM
It looks as though you did not install the main 'product'
doh. you're absolutely right. sorry, i'm new to the plugins, but thank you very much!
phlogiston
08-07-2005, 04:59 PM
The reason for the post count on first post , second page is due to it is a stock template.
I may do some template work later but in all rights it needs no post number on it, such as vb.org does not show a post number on theirs.
yep, I'm gonna remove the post count from the first post template too, but on the second+ pages the other posts will be numbered wrong as well.
As I said, it's just cosmetic as I don't know if postcount is used for anything at all!
vBintense
08-07-2005, 05:00 PM
Ya they can be some what confusing at first, due to there are two places to import xml files.
Hope is working well now :)
Boofo
08-07-2005, 05:47 PM
So, what's the concensus here now? Do we remove the postcount or leave it alone as is?
vBintense
08-07-2005, 05:49 PM
It does not 'hurt' anything, it just tosses the number off by one (but if you use the go to newest and all that it works right)
I plan to try out phlogiston code after I get back from boating, if it works as well as it looks, then I will release an update with it (per his permission)
Boofo
08-07-2005, 05:52 PM
It does not 'hurt' anything, it just tosses the number off by one (but if you use the go to newest and all that it works right)
I plan to try out phlogiston code after I get back from boating, if it works as well as it looks, then I will release an update with it (per his permission)
Ok, great! I might hold off installing it until you do the upgrade. I clicked the install button though. ;)
vBintense
08-07-2005, 08:13 PM
Updated with the new postnumber fix (I changed it a tad so it does not show the post count to the first post on other pages)
If you wish to apply this fix use this file in 'plugins'.
The zip has also been updated with the new product.
Thanks phlogiston for pointing out this issue and offering code :)
hydrostatic
08-07-2005, 08:32 PM
Updated with the new postnumber fix (I changed it a tad so it does not show the post count to the first post on other pages)
If you wish to apply this fix use this file in 'plugins'.
The zip has also been updated with the new product.
Thanks phlogiston for pointing out this issue and offering code :)
Can't we just re-import the product and "allow overwite"?
vBintense
08-07-2005, 08:34 PM
I did not choose that route due to I have seen others have alot of trouble with that (update)
And I find it just as easy to solve one trouble with an update plugin, and fix zip for all those who dl after.
phlogiston
08-07-2005, 08:42 PM
(I changed it a tad so it does not show the post count to the first post on other pages)that's probably a more expected behaviour actually, and I'm glad you tidied up the if()
I knew mine was too messy to be the easiest way but I've always had a blind spot for matching firstpostid!
* phlogiston deletes his own version & uses insane-topics'
vBintense
08-07-2005, 08:46 PM
that's probably a more expected behaviour actually, and I'm glad you tidied up the if()
I knew mine was too messy to be the easiest way but I've always had a blind spot for matching firstpostid!
Ya it was a minor change of yours, not much though.
I allowed it to show post number 1 in first page, after that it just shows no post count number for the first post....... seemed cleaner to me.
Boofo
08-08-2005, 12:04 AM
Thank you, sir. Installing now. ;)
(I'm going in! Cover me!)
vBintense
08-08-2005, 12:12 AM
/me hides the zip from boofo ...
It should be painless, well almost? lol
Boofo
08-08-2005, 12:27 AM
LOL Once I found the setting, all was well. ;)
Excellent job, sir. Now all we need is a postbit that is a little different so it stands out. ;)
* Boofo had the file before you hid it. ;)
vBintense
08-08-2005, 12:31 AM
Ya on mine I use legecy so the new postbit stands out alot ;)
But I plan to change it a bit one day unless someone is willing to share one before I get to it.
Boofo
08-08-2005, 12:42 AM
Ya on mine I use legecy so the new postbit stands out alot ;)
But I plan to change it a bit one day unless someone is willing to share one before I get to it.
I was going to do that, but since I don't use that anyway else, I thought it might look strange. And then I thought if members saw that I would get a bunch of pms wanting me to enable to legacy postbit and then I would really be in trouble. ;)
Brinnie
08-08-2005, 02:00 AM
Having a small problem with the XML import... It shows up as product "vBulletin" and nothing inside of it.
vBintense
08-08-2005, 02:01 AM
If this is your first time installing , you install the xml in the zip as product not plugin (the files that where used in plugin where only updates.)
Brinnie
08-08-2005, 02:11 AM
If this is your first time installing , you install the xml in the zip as product not plugin (the files that where used in plugin where only updates.)
what are the exact files that need to be uploaded and where?
Thanks. :)
vBintense
08-08-2005, 02:13 AM
If this is fresh install, download the zip, inport the xml into products (not plugins)
Brinnie
08-08-2005, 02:16 AM
ok, I got it working, thanks 4 ur patience.
Question, do I still have to do further editing to show attachments?
vBintense
08-08-2005, 02:18 AM
Nope it is now just one import, the updates thru out the thread where fixed in the import , and no file edits are needed thanks to kirby :)
ricker
08-09-2005, 04:43 AM
I just downloaded an installed this plugin yesterday, and thought it was great. Today, my posts are disappearing. It seems that whichever post should be first on all subsequent pages is being "covered up" by the plugin. Does that make sense?
Anyway, when I disabled the product, I can see my posts again. Has anyone else experienced this? I have no code edits and I used the fresh postbit template with only a few edits. The rest of my board uses the postbit_legacy. Running 3.5Rc2.
theArchitect
08-09-2005, 06:29 AM
Hmm. For some reason I am managing to complicate the simple.
I have installed the xml file, in the Product manager, and added the additional template.
I am running RC2 and the legacy style of postbit but for some reason the first post is not showing up. Can't think what I am doing wrong.
I just downloaded an installed this plugin yesterday, and thought it was great. Today, my posts are disappearing. It seems that whichever post should be first on all subsequent pages is being "covered up" by the plugin. Does that make sense?
Anyway, when I disabled the product, I can see my posts again. Has anyone else experienced this? I have no code edits and I used the fresh postbit template with only a few edits. The rest of my board uses the postbit_legacy. Running 3.5Rc2.
Same problem .. disabled plugin and posts re-appeared !?
Logikos
08-09-2005, 09:45 AM
I had this same problem on my board. Though I'm not using your hack at the moment, I've created my own long ago in 3.0.7 for my hack system. When I had this problem, it was caused by a condition I was using. This was the condition.
<if condition="$forum[ishack] == 1 AND $post[postid] == $GLOBALS['FIRSTPOSTID']">
 
<else />
<!-- the rest of the postbit template here -->
</if>
I don't know if you using a simalar condtion, but that will grab the first post and hide it. The only problem is, that will grab the first post on everypage...
The only way I was able to fix this was to create a query that grabed the firstpostid out from the thread table.
Hope this helps you out some. I havn't used your hack yet, But I do plan on using it for my upgraded version of my hack install system.
ricker
08-09-2005, 03:22 PM
Hmm, I haven't learned enough about the plugin system yet to troubleshoot this. For now, it seems that this is a very big bug and this should at least be noted in the first post.
Logikos
08-09-2005, 03:54 PM
I just installed this hack on my test board, and it's working fine. All post are showing up as they should. I tested with old threads that have mutiable pages, and a created 2 new threads that split into mutiable pages. Seems everything is working just fine for me.
Boofo
08-09-2005, 04:01 PM
I just installed this hack on my test board, and it's working fine. All post are showing up as they should. I tested with old threads that have mutiable pages, and a created 2 new threads that split into mutiable pages. Seems everything is working just fine for me.
Same here. ;)
Do you have a different postbit for the first message?
Andreas
08-09-2005, 04:20 PM
Actually the last Post of every Page (that is not the first Page) disappears into Nirvana.
Explaining in detail why this does happen is not that easy, therefor i'll just post the fix :)
Hook: showthread_postbit_create
if ($post['postid'] == $thread['firstpostid'] AND $vbulletin->GPC['pagenumber'] > 1)
{
$counter--;
}
Edit:
As this Hack already has Code on this Hook, replace that with
if ($forum['showfirstpost'] AND $vbulletin->GPC['pagenumber'] > 1)
{
if ($post['postid'] == $thread['firstpostid'])
{
$counter--;
$post['postcount'] = '';
}
else
{
$post['postcount']--;
}
}
Boofo
08-09-2005, 04:24 PM
We replace all of this with that?
if($forum['showfirstpost'] AND $vbulletin->GPC['pagenumber'] > 1)
{
if ($post['postid'] == $thread['firstpostid'])
{
$post['postcount'] = '';
} else
{
$post['postcount']--;
}
}
ricker
08-09-2005, 04:25 PM
I just installed this hack on my test board, and it's working fine. All post are showing up as they should. I tested with old threads that have mutiable pages, and a created 2 new threads that split into mutiable pages. Seems everything is working just fine for me.
Could it be possible that the posts are cached somehow?
Logikos
08-09-2005, 04:28 PM
Your absolutely right Kirby, I didn't make it as first as 3 pages. Since the bug report said the first post on all pages. Thanks for that fix, works like a charm! :)
Andreas
08-09-2005, 04:28 PM
@Boofo
See my edited Post ;)
Didn't notice in first place that there already was Code on this Hook.
Logikos
08-09-2005, 04:30 PM
@boobflu
nvm, Kirby answered for ya
Andreas
08-09-2005, 04:31 PM
@boobflu
replace all of it with Kirbys new code.
No. If you do that Postcounts will get messed up.
Logikos
08-09-2005, 04:33 PM
Thanks Kirby, fixed and works :)
ricker
08-09-2005, 04:40 PM
Actually the last Post of every Page (that is not the first Page) disappears into Nirvana.
Explaining in detail why this does happen is not that easy, therefor i'll just post the fix :)
Hook: showthread_postbit_create
if ($post['postid'] == $thread['firstpostid'] AND $vbulletin->GPC['pagenumber'] > 1)
{
$counter--;
}
Edit:
As this Hack already has Code on this Hook, replace that with
if ($forum['showfirstpost'] AND $vbulletin->GPC['pagenumber'] > 1)
{
if ($post['postid'] == $thread['firstpostid'])
{
$counter--;
$post['postcount'] = '';
}
else
{
$post['postcount']--;
}
}
Sorry, so what exactly are we supposed to do here? I found the code I just want to make sure I edit it correctly.
Andreas
08-09-2005, 04:45 PM
As said, replace the Code that is currently on Hook showthread_postbit_create with the 2nd Code I posted (basically it's the first Code merged with the existing Code ;)).
ricker
08-09-2005, 04:48 PM
As said, replace the Code that is currently on Hook showthread_postbit_create with the 2nd Code I posted (basically it's the first Code merged with the existing Code ;)).
Merge! Ok, thanks so much, it seems to be working now.
Thanks for all ya'lls help with this, this is a great feature.
Boofo
08-09-2005, 04:59 PM
@Boofo
See my edited Post ;)
Didn't notice in first place that there already was Code on this Hook.
LOL You posted that just a split second after I posted my question. Great minds think alike? ;)
Marco van Herwaarden
08-09-2005, 05:41 PM
LOL You posted that just a split second after I posted my question. Great minds think alike?
Great minds, yes. I don't know about flowers.
Boofo
08-09-2005, 05:45 PM
Great minds, yes. I don't know about flowers.
LOL Someone has been following me around it seems. ;)
Like my sig? ;)
vBintense
08-09-2005, 06:00 PM
I am just getting to the desk, I will post an update later with the fix Kirby gave :) Thanks once again kirby.
Marco van Herwaarden
08-09-2005, 07:37 PM
Like my sig?
Already answered that on another thread. Yes i love it. :D
Now let's wait for the first poor punk who feels lucky.
Boofo
08-09-2005, 07:44 PM
Already answered that on another thread. Yes i love it. :D
Now let's wait for the first poor punk who feels lucky.
I didn't see the other thread, I guess. ;)
Be careful, I feel my luck changing for the better already.
vBintense
08-09-2005, 07:53 PM
Zip updated, and can either uninstall and reinstall the xml product or manually edit with the fix here https://vborg.vbsupport.ru/showpost.php?p=752889&postcount=79
Thanks again :)
Boofo
08-09-2005, 08:03 PM
Thanks for updating the file, sir. Excellent mod! ;)
vBintense
08-09-2005, 08:29 PM
Most welcome, though I can not take much credit for it ;)
Boofo
08-09-2005, 08:32 PM
Most welcome, though I can not take much credit for it ;)
Sure you can. You were smart enough to go to Kirby and save everyone file edits. And like you said, you learned something in the process. Your next hack will be even better, I'm sure. ;)
vBintense
08-09-2005, 08:36 PM
My next hack idea no one has shown interest in yet, so it may be back to the drawing board or perhaps just release any how once it is done lol.
Boofo
08-09-2005, 08:38 PM
My next hack idea no one has shown interest in yet, so it may be back to the drawing board or perhaps just release any how once it is done lol.
What is the idea?
vBintense
08-09-2005, 08:42 PM
A application on register , for sites that are more selective of their members.
It makes a thread with the info, makes a vote option stickys it. So can know more about the person before you moderate them.
Boofo
08-09-2005, 08:44 PM
A application on register , for sites that are more selective of their members.
It makes a thread with the info, makes a vote option stickys it. So can know more about the person before you moderate them.
I like the idea. I might be able to use that. ;)
theArchitect
08-09-2005, 10:47 PM
Zip updated, and can either uninstall and reinstall the xml product or manually edit with the fix here https://vborg.vbsupport.ru/showpost.php?p=752889&postcount=79
Thanks again :)
You might also want to update the product number. It is still showing 1.0.0 for me. :cheeky:
Plus, it is still not showing anything for me. I.e. the first post is not being listed on each page. :disappointed:
Andreas
08-09-2005, 10:48 PM
Then you most likely missed the step of copying the contents of your postbit/postbit_legacy Template to a new Template called postbit_first :)
vBintense
08-09-2005, 10:53 PM
You might also want to update the product number. It is still showing 1.0.0 for me.Opps , ty will do this in a tad.
Then you most likely missed the step of copying the contents of your postbit/postbit_legacy Template to a new Template called postbit_first
What he said :)
theArchitect
08-09-2005, 10:55 PM
Then you most likely missed the step of copying the contents of your postbit/postbit_legacy Template to a new Template called postbit_first :)That was my first guess, but according to my screen shot I have made that new template.
Also, did you get the e-mail I sent you the other day?
vBintense
08-09-2005, 11:01 PM
That was my first guess, but according to my screen shot I have made that new template.
Also, did you get the e-mail I sent you the other day?
Did you edit forums to show the first post? In forum manager.
Also no I did not get the email, you may wish to try the pm system.
theArchitect
08-09-2005, 11:08 PM
Did you edit forums to show the first post? In forum manager.
Also no I did not get the email, you may wish to try the pm system.
Hmm. I can't find that option.
As for the e-mail, I really should not post and work at the same time. I meant the e-mail question to be @ KirbyDE
Boofo
08-09-2005, 11:09 PM
Hmm. I can't find that option.
As for the e-mail, I really should not post and work at the same time. I meant the e-mail question to be @ KirbyDE
Edit a forum, it should be at the bottom. ;)
vBintense
08-09-2005, 11:10 PM
Forum manager , choose the forum, edit and at the bottom by save should be the option.
theArchitect
08-09-2005, 11:19 PM
Edit a forum, it should be at the bottom. ;)
This is why I REALLY shouldn't work and modify at the same time.
I installed the hack yesterday and it didn't seem to work. I then read the posts about messages vanishing, so thought (late last night) I had better remove this until I sort the problem. Then this morning I set to work and then installed the new version of the plug-in but ended up installing it in the plug-in manager rather than the product manager.
Sorry guys. I need some sort of special award for this. And I should also have my day release privileges revoked.
Boofo
08-09-2005, 11:21 PM
You got it figured out and working, that is the important thing. ;)
vBintense
08-09-2005, 11:31 PM
You got it figured out and working, that is the important thing.
That and you clicked the install button :)
theArchitect
08-11-2005, 01:26 AM
That and you clicked the install button :)
Ok. New problem, sorry.
I have got it working but when I posted about the new feature on my forum some of my members said that they couldn't see it. After some digging this became apparent.
I configured the forum to show posts as Linear - Oldest First; the first post then appeared on every page. I set it back to my normal setting of Linear - Newest First; and the first post does not show up on every page.
Am I doing something wrong, or is this just inevitable?
vBintense
08-11-2005, 01:42 AM
I will have to test that, I never have used the newest first option so it is a new thing for me.
Gizmo5h1t3
08-14-2005, 06:26 PM
There is an issue with this so i have disabled it.
I had spotted that the odd post or two wasn't showing up in a thread. In numerous sections members posted and it was missing from the thread yet it showed up if you searched their "find all posts" in their profile. Disabling the first post on all pages puts the post back.
anyone else had this issue?
ive had 6 members mention it to me so far
vBintense
08-16-2005, 01:46 AM
There is an issue with this so i have disabled it.
I had spotted that the odd post or two wasn't showing up in a thread. In numerous sections members posted and it was missing from the thread yet it showed up if you searched their "find all posts" in their profile. Disabling the first post on all pages puts the post back.
anyone else had this issue?
ive had 6 members mention it to me so far
That was fixed here
https://vborg.vbsupport.ru/showpost.php?p=752889&postcount=79
:)
wolfyman
08-17-2005, 02:54 AM
err. sorry, how do you add a new template? I'm lost without the Easy-Hack hack :P
Brandon Sheley
08-17-2005, 07:04 AM
*installs*
worked prefect 1st try :)
thank you
Skyline_GT
08-23-2005, 01:50 AM
is there a quary that I can run so it will make all forum turn to yes?
my forum has a lot of forums and it iwll take forever to change them by hand..
Gizmo5h1t3
08-23-2005, 06:19 AM
changed the code in the hook, and it works a treat now...cheers mate.
turkforum
08-24-2005, 05:51 AM
Thanks for porting this hack for us.This hack would be also so useful for discussions forums so users will stick to the point of a subject all the time..:) If it is possible, can we add a agree/disagree check box to it instead of attaching a poll to it?
I have modified the postbit_first template (see attached image) i am allso attaching the template for anyone who wants or feels they could edit for their needs
edit
attachments dont show properly... can anyone take a look??
edit
Fixed attachments (see attached image)
Creed
08-25-2005, 02:22 AM
Is there any way to set this so that you have the option to make this first post on each page? Instead of all topics, like when you're creating a thread, just a checkbox to "Make first post on every page". I would really love that!
Andreas
08-25-2005, 02:26 AM
Should be relativelty easy to do that: A new field in Table thread and a few Plugins to manage that.
Creed
08-25-2005, 02:36 AM
I would attempt to do so myself, but unfortunately I'm relatively lost when it comes to 3.5 and the plugins. I know very little XML sadly, something I need to work on.
Cheertobi
08-29-2005, 07:00 PM
Hi,
Is there any way to set this so that you have the option to make this first post on each page? Instead of all topics, like when you're creating a thread, just a checkbox to "Make first post on every page". I would really love that!
yep, I also would like to see something like that ;)
Regards,
Tobi
Gizmo5h1t3
08-30-2005, 06:33 AM
I have modified the postbit_first template (see attached image) i am allso attaching the template for anyone who wants or feels they could edit for their needs
edit
attachments dont show properly... can anyone take a look??
edit
Fixed attachments (see attached image)
looks ok, but is there any way to make the section which houses the avatar, the same colour as the rest of the post box????
i get an ugly white box
ThorstenA
08-30-2005, 10:29 PM
I am getting this error while installing this as plugin Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 772
vBintense
08-30-2005, 10:50 PM
I am getting this error while installing this as plugin
What VB are you running? and also you should be importing as a product.
ThorstenA
08-30-2005, 11:03 PM
What VB are you running? and also you should be importing as a product.
It works as a product, I installed it as a plugin as this forum is a "plugin forum" ;)
SnitchSeeker
09-01-2005, 08:24 AM
This is an EXCELLENT idea!
Is it possible to add the option of making the first post look different as well? For example that it doesn't show the memberinfo/avatar etc on the left like the other posts do? But instead only shows the original posters name?
Either way this is worth it even without that, but I thought it would make the first post look more like a regular article instead of a forum, and then the posts underneath could look like comments to the article.
looks ok, but is there any way to make the section which houses the avatar, the same colour as the rest of the post box????
i get an ugly white box
Could you show me a screen of what you are getting and if possible what you want and i will see what i can do!!
This is an EXCELLENT idea!
Is it possible to add the option of making the first post look different as well? For example that it doesn't show the memberinfo/avatar etc on the left like the other posts do? But instead only shows the original posters name?
Either way this is worth it even without that, but I thought it would make the first post look more like a regular article instead of a forum, and then the posts underneath could look like comments to the article.
Just modify the "postbit_first" template to be how you want it.... if you need any help just say/show what you want and ill have a go
DaFire
09-25-2005, 07:07 PM
Really nice. It would be cool if the thread starter could edit the first post in these forums even if he is normaly not allowed because of "Time Limit on Editing of Posts" expired ;)
TruthElixirX
09-25-2005, 11:32 PM
I isntalled it on an RC3 board and it causes the thread to not have multiple page.s.just one long list...
armkbdotcom
09-30-2005, 05:47 PM
I've installed it but it doesn't functioning. Do I have to enable this from somewhere?
It installed 7 plugins and all are enabled.
vBintense
09-30-2005, 06:14 PM
Sorry for the delay on reponces I was called out of town on emergancy matters.I've installed it but it doesn't functioning. Do I have to enable this from somewhere?
It installed 7 plugins and all are enabled.
In forum edit there is options to turn it on and off per forum.
I isntalled it on an RC3 board and it causes the thread to not have multiple page.s.just one long list...I have not used RC3 I plan to upgrade to Gold later and see how it reacts.
dutchbb
09-30-2005, 06:53 PM
Does this plugin include the option to make the first post look different like here on vbulletin.org?
I like to make the first one a review and make it look different.
Ty
armkbdotcom
09-30-2005, 06:59 PM
Looks ok to me now, the only thing is that when thread is consisting from 1 page, the original postbit is not being used...
vBintense
10-01-2005, 01:37 AM
Does this plugin include the option to make the first post look different like here on vbulletin.org?
Yes in some of the first pages someone shared one they made.
Looks ok to me now, the only thing is that when thread is consisting from 1 page, the original postbit is not being used...
I am lost what you mean?
I just upgraded to gold and everything works as should on mine.
armkbdotcom
10-01-2005, 10:28 AM
What I mean is - could you make the first post to use postbit_first ONLY when number of pages in thread is more than 1. In other words - do nothing for single page threads.
chader144
10-10-2005, 04:55 AM
How hard would it be to add an option in the Thread Display Drop down on the NavBar so the users themselves can choose?
I ask because some of my users have asked for a feature like this for large threads. I am hoping to use this along with show newest thread first.
So it would be nice to let them choose how they want the threads to be formatted.
thanks for the plugin and the time to develop it.
*Install
armkbdotcom
10-10-2005, 08:08 AM
How hard would it be to add an option in the Thread Display Drop down on the NavBar so the users themselves can choose?
I ask because some of my users have asked for a feature like this for large threads. I am hoping to use this along with show newest thread first.
So it would be nice to let them choose how they want the threads to be formatted.
thanks for the plugin and the time to develop it.
*Install
I'm totally agree. That would be brilliant to have it just like "Thread Stick" option for each thread.
Andreas
10-12-2005, 04:51 PM
@insane-topics
I've made a few changes to this Hack
- optimized/less code
- works with "Newest First" now too
- no need to manually create postbit_first
Fell free to use it if you want.
ricker
10-12-2005, 05:16 PM
@insane-topics
I've made a few changes to this Hack
- optimized/less code
- works with "Newest First" now too
- no need to manually create postbit_first
Fell free to use it if you want.
Thanks for the update, installed!
ricker
10-12-2005, 06:45 PM
Thanks for the update, installed!
after installing this, it seems to add the first post to every page of every forum, even if the setting is shut off ... suggestions?
Andreas
10-12-2005, 07:03 PM
You don't want this for all Forums?
Well then ... XML updated.
etaslim
10-14-2005, 06:48 PM
You don't want this for all Forums?
Well then ... XML updated.
great! thanks to insane-topics & Kirby.
chader144
10-14-2005, 09:42 PM
thank you kirby & Insane ... (newest post), its getting there just need it to be an option per thread or a thread display option.
If you can put an option in the thread display this would get my "mod favorite" banner award.
Flow Fusion
10-15-2005, 03:52 PM
Works great thanks!
lairnoc
11-10-2005, 10:22 AM
@insane-topics
I've made a few changes to this Hack
- optimized/less code
- works with "Newest First" now too
- no need to manually create postbit_first
Fell free to use it if you want.
dewd you rule baby whoooot :)
lairnoc
11-10-2005, 03:11 PM
dewd you rule baby whoooot :)
I get one problem wenn using this hack the first post anywere cannot be given rep anymore
futuregizmo
11-12-2005, 07:10 AM
is there a way to edit the other info in the first post. i have the "Release" and "last Update" section but I don't need those. I'm making a book review so I'd rather have something like "Book Name," "Author," "Date of Publication," etc. How can I make this editabel for each post rather than edit the template?
vBintense
11-12-2005, 07:15 AM
I get one problem wenn using this hack the first post anywere cannot be given rep anymore
What template are you using, the one I gave or the other that was posted?
is there a way to edit the other info in the first post. i have the "Release" and "last Update" section but I don't need those. I'm making a book review so I'd rather have something like "Book Name," "Author," "Date of Publication," etc. How can I make this editabel for each post rather than edit the template?
If you mean to have extra feilds in the post? That would take more coding.
Uhmmm I haven't used this hack yet, but I download and modified the provided template a little. You can take a look at this picture. If you like it, I will upload it here
vBintense
11-12-2005, 11:07 AM
Nice, I am assuming that the last updated is working on the if edited?
I am sure many would have use for it, and would be great if you shared.
apdcanari
11-12-2005, 11:18 AM
Hello,
How to separate the first message from the others?
And how to modify the prime coat of the first message which is on all the pages?
With an aim of separating the question well from the answers.
Thank you,
Cédric :ermm:
PS : I'm french...
vBintense
11-12-2005, 11:20 AM
How to separate the first message from the others?
This hack does that, once installed you get the option in forum edit.
And how to modify the prime coat of the first message which is on all the pages? You can do this with one of the many templates people have offered (makes note to self I need to post links to them this weekend to help people find them)
Here is the template and the icon on the left. Just copy and paste the text into the firstpost template and upload firstpost.gif to images directory
Madmax4321
11-13-2005, 07:10 PM
nice work on the hack ;)
how hard would it be to pull other info into the postbit from a custom table im asking because would like to make something similar to the hack system here as the system i made for 3.0.7 doesnt work in the same way with the new code.
Thanx.
vBintense
11-13-2005, 07:55 PM
I would have to see the table to answer how to.how hard would it be to pull other info into the postbit from a custom table im asking because would like to make something similar to the hack system here as the system i made for 3.0.7 doesnt work in the same way with the new code.
Madmax4321
11-13-2005, 09:31 PM
this is my table structure if its any help.
CREATE TABLE `hacks` (
`hackid` int(10) NOT NULL auto_increment,
`threadid` int(10) unsigned NOT NULL default '0',
`firstpostid` int(10) unsigned NOT NULL default '0',
`forumsid` int(10) NOT NULL default '0',
`userid` int(10) NOT NULL default '0',
`username` varchar(50) NOT NULL default '',
`dateline` int(10) NOT NULL default '0',
`catid` int(4) NOT NULL default '0',
`version_vb` varchar(10) NOT NULL default '',
`version_hack` varchar(10) NOT NULL default '',
`title` varchar(100) NOT NULL default '',
`description` mediumtext NOT NULL,
`installation` varchar(4) NOT NULL default '',
`queries` varchar(4) NOT NULL default '',
`templates_news` varchar(4) NOT NULL default '',
`templates_mod` varchar(4) NOT NULL default '',
`files_add` varchar(4) NOT NULL default '',
`files_mod` varchar(4) NOT NULL default '',
`phrases` varchar(4) NOT NULL default '',
`attachmentid` varchar(50) NOT NULL default '',
`nb_install` int(10) NOT NULL default '0',
`postuser` varchar(250) NOT NULL default '',
`postuserid` int(10) NOT NULL default '0',
`version` varchar(10) NOT NULL default '',
`installer` varchar(4) NOT NULL default '',
`installs` int(5) NOT NULL default '0',
`updated` int(10) NOT NULL default '0',
`addonid` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`hackid`)
) TYPE=MyISAM;
revlisoft
11-16-2005, 02:44 PM
Andreas.. how do I get the original so that it is by default show first post on all forums and then disable each one later on?
vBintense
11-16-2005, 03:05 PM
Andreas.. how do I get the original so that it is by default show first post on all forums and then disable each one later on?
Admincp>
Maintenance>
Execute SQL Query>
UPDATE forum SET showfirstpost = 1
You may have to add your preffix if you use one.
nubian
11-25-2005, 05:15 AM
will this work for 3.5.1?
yes, it does. I am running it on 3.5.1
Pvtiste
11-25-2005, 05:24 PM
it's really good, I was looking for it :)
Thx for the sharing!
nubian
11-25-2005, 05:52 PM
............................
cbr929rrerion
11-26-2005, 12:48 AM
any way to change the color or a way to distinguish it as the initial post?
vBintense
11-26-2005, 12:53 AM
...........................
.......................?
any way to change the color or a way to distinguish it as the initial post?
That could be done by editing the template for firstpost.
nubian
11-26-2005, 01:11 AM
.......................?
sorry, i thought i was replying to a thread of a similar hack.
so i edited my message.
sorry, i thought i was replying to a thread of a similar hack.
so i edited my message.
hi,
I am using this hack and I like it .-)
I want to have google adsense after first post. I have found that I may achieve this using this code:
<if condition="!$GLOBALS['FIRSTPOSTID']">
adsense here
</if>
But this is not working for me and it is probably because I use "first post on every..." hack.
Can you advise where to put this code?
Thank you .-)
hi,
I am using this hack and I like it .-)
I want to have google adsense after first post. I have found that I may achieve this using this code:
<if condition="!$GLOBALS['FIRSTPOSTID']">
adsense here
</if>
But this is not working for me and it is probably because I use "first post on every..." hack.
Can you advise where to put this code?
Thank you .-)
Nobody?
Stephen3
12-20-2005, 07:49 PM
any demo ? work for 3.5.2?
DaFire
12-21-2005, 08:01 AM
@kafi: just include the code into the new first post template
yayvb
12-23-2005, 11:53 PM
I saw this asked a few times in this thread, but I didn't see it answered. I
was just noticing that no one can leave feedback using anyone's first post.
Is there a way around this?
yayvb
12-24-2005, 04:51 PM
Ok so what I did was compare my postbit_legacy with my postbit_first.
Since postbit_first is the template for the 1st post, I put a piece of the reputation link code from postbit_legacy to postbit_first.
Can someone tell me if there will be any problems with what I've done?
In postbit_first I found:
<if condition="$show['reputationlink']"><a href="#" onclick="reputation($post[postid]); return false;"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></if>
and replaced it with this:
<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></if>
YoricksRequiem
01-06-2006, 04:08 PM
Not entirely, my members reported viewing a thread, then coming back to the thread and the first post being gone.
Not something I need happening, any idea on a fix?
Club3G
01-13-2006, 06:30 PM
Working on 3.5.3. Looks great with Legacy. Thanks mate.
It puts the signature directly on top of the edit/quote buttons (you can see it in my screenshot). Adding a quick:
<br />
Right after:
$post[signature]
Puts a space inbetween, and makes it a little neater looking IMHO.
* Club3G clicks install.
Screenshot since nobody posted one:
http://www.sevenstring.org/chris/firstpost_ss.jpg
And a link to a public forum using it. Pardon the abysmal use of tables in the post, I haven't had time to code it for CSS (though now that it's linked, I might prioritize it, lol)
http://www.sevenstring.org/forum/showthread.php?t=1287
LBSources
01-13-2006, 11:35 PM
insane topics i have to commend you for every change, edit, cut, paste, etc made youve also updated the zip file also.. great job and thank you..
/me clicks install
Allan
01-20-2006, 06:22 PM
can one choose a specific ID forum ?
vBintense
01-20-2006, 06:38 PM
Glad many are getting use from this, I have yet to upgrade my current board to the newest vbulletin due to my new community I have been into.
@Allan, yes it is in the forum options when you edit the forum.
Dreamchaser
01-21-2006, 05:57 PM
Thanks Insane! Works charming for me and the one I always wanted :) !
vBintense
01-24-2006, 03:33 PM
Added links to additional temples, and changed vb ver. Now that I have tested it on a 3.5.3
topanet
02-03-2006, 05:11 AM
This is great hack that i ever looking for :)
many thanks insane..
btw, how can i move postcount xxx into first post anyway??? anyone can help maybe??
thanks,
topz
TurkSipa
02-05-2006, 09:15 AM
Add Reputation fixed.
Signature added.
katholic
02-18-2006, 11:23 AM
If you look at this thread http://www.insimenator.net/showthread.php?t=478 you will notice the first post is formated differently than the rest of the posts. How can I fix it where they all display the same? I want them to all display as post 2 does.
vBintense
02-22-2006, 12:00 PM
If you look at this thread http://www.insimenator.net/showthread.php?t=478 you will notice the first post is formated differently than the rest of the posts. How can I fix it where they all display the same? I want them to all display as post 2 does.
I was unable to see your community , but if you mean you wish them all to look like legacy then just simply copy your legacy template into the firstpost template.
I hope that works for what your wishing to do.
katholic
02-22-2006, 12:20 PM
Yeah I am updating right now so I kind of broke something lol.
Krose
03-03-2006, 10:41 PM
installed!..thanx a lot!!..nice hack! :banana:
BeaLzeBuB
03-04-2006, 09:22 PM
Thx its great, i installed it and i have edited for my own. i can see in att.
<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" colspan="4" $post[scrolltothis] align="center">
<div class="normal" style="float:$stylevar[right]">
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
</if>
</div>
<div class="normal">
<!-- status icon and date -->
<a style="float:$stylevar[left]" name="post$post[postid]">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
</a>
$post[firstnewinsert]
<!-- / status icon and date -->
<if condition="$show['messageicon']">
<img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" />
</if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
</td>
</tr>
<tr>
<td class="alt2" rowspan="3" width="75" style="vertical-align:top;">
<img class="inlineimg" src="images/firstpost.gif" alt="" border="0" />
</td>
<td class="alt2">
<table>
<tr>
<td>
<strong>Son Giriş:</strong> $post[postdate]
</td>
</tr>
<tr>
<td>
<if condition="$show['detailedtime']">
<strong>Post Time : </strong> $post[posttime]
</if>
</td>
</tr>
</table>
</td>
<td class="alt2"><br><center><if condition="$show['messageicon']">
<img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" />
</if>
<if condition="$post['title']"><strong><font color="darkred" size="3">$post[title]</font></strong></if></center>
</td>
<td class="alt2" rowspan="3">
<table>
<tr>
<td>
<!-- user info -->
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
<if condition="$post['usertitle']">
<div class="smallfont">
$post[usertitle]
</div>
</if>
<if condition="$post['rank']">
<div class="smallfont">
$post[rank]
</div>
</if>
<if condition="$show['avatar']">
<div class="smallfont">
<a href="member.php?$session[sessionurl]u=$post[userid]">
<img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
<!-- user info -->
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="alt1" style="vertical-align:top;">
<div class="normal">
<!-- status icon and date -->
$post[onlinestatus]
$post[iplogged]<if condition="$show['reportlink']">
<a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow">
<img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="Report Bad Submition" border="0" />
</a>
</if>
</div>
</td>
<td class="alt1">
<div class="normal">
<!-- status icon and date -->
<if condition="$show['reputationlink']">
<a href="#" onclick="reputation($post[postid]); return false;">
<img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" />
</a>
</if>
<if condition="$show['reputation']">
<if condition="$show['reppower']">
<a style="float:$stylevar[left]" name="~">$vbphrase[reppower]: $post[reppower]
</if>
$post[reputationdisplay] </a>
</if>
</div>
</td>
</tr>
<tr>
<td class="alt2">
<if condition="$show['postedited']">
<strong>Konunun Son D?zenlenmesi:</strong> $post[edit_date], $post[edit_time]
<else />
<strong>Konunun Son D?zenlenmesi:</strong> Hi?
</if>
</td>
<td class="alt2">
<if condition="$thread['rating']">
<span style="float:$stylevar[center]">
<strong>Konuya Verilen Puan:</strong>
<img alt="" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" title="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" />
</span>
<else />
<strong>Konuya Verilen Puan:</strong> Yazık ya hi? puan vermemişsiniz adam o kadar emek vermiş
</if>
</td>
</tr>
<!-- / user info -->
<tr style="vertical-align: top">
<td class="alt1" colspan="3" id="td_post_$post[postid]">
<table width="100%">
<tr width="100%">
<td width="100%">
<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
</td>
</tr>
<tr>
<td width="100%">
<!-- attachments -->
<if condition="$show['attachments']">
<div style="padding:$stylevar[cellpadding]px">
<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>
<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>
</if>
</div>
<!-- / attachments -->
</td>
</tr>
<tr>
<td>
<if condition="$show['attachments']">
<!-- attachments -->
<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>
<!-- / attachments -->
</if>
</td>
</tr>
</table>
<!-- / message -->
</td>
<td class="alt1" align="center" width="250">
<div align="left">
<fieldset style="border: 1px dashed #99CCFF; height: 380px;" ><legend>Konuyu A?anın Bilgileri:</legend>
<table>
<tr>
<td>
<div class="smallfont">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
</td>
</tr>
<tr>
<td>
<div class="smallfont">
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
</div>
</td>
</tr>
<tr>
<td>
<div class="smallfont">
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
</div>
</td>
</tr>
<tr>
<td>
<div class="smallfont">
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
</td>
</tr>
<tr>
<td>
<div class="smallfont">
$vbphrase[posts]: $post[posts] <br><br><br><table align="center"><script type="text/javascript"><!--
google_ad_client = "pub-3975276571572787";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "880000";
google_color_bg = "FFFFFF";
google_color_link = "880000";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></table>
</div>
</td>
</tr>
</table>
</fieldset>
</div>
</td>
</tr>
<!-- / attachments -->
<!-- message, attachments, sig -->
<tr>
<td class="alt2" colspan="4" align="left">
<div class="normal" style="float:$stylevar[right]"> <if condition="$post['editlink']">
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if> <if condition="$post['forwardlink']"> <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if> <if condition="$post['replylink']"> <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif"
alt="$vbphrase[reply_with_quote]" border="0" /></a> </if> <if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if> <if condition="$show['moderated']"> <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if> </div>
</td>
</tr>
</table>
<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->
<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->
i translate to Turkish, if you like that, edit your own lang... thx again
blacklancer
03-15-2006, 10:06 PM
ok...i installed this and made the template. i see the option to put the first post when i edit the forum, but nothing is showing up.... did i miss something?
does this work on 3.5.4??
MissKalunji
03-20-2006, 04:20 AM
how does the "Last Update " work?
Logikos
03-20-2006, 06:44 AM
Works fine in 3.5.4. I'm using this at my site, though I have changed the template around alot! http://www.vbhackers.com/forum/showthread.php?t=1412
ffevo
03-21-2006, 09:03 PM
Ho wwould i even test this to see if it works? ho wdo i set something as the first post? when i upload the poroduct it seems to give me some sort of error, but redirects to quickly to let me see it.
D.Ilyin
04-04-2006, 05:17 PM
Someone, please, give me suggestion's or tip's how to give permision to group, edit only first post of th tread (with this hack installed)
Tyegurl
04-11-2006, 03:40 AM
anyone have template for vbadvance postbit?
Daniel
04-11-2006, 05:02 AM
Good work, will install soon enough.
esology
04-21-2006, 11:38 AM
@insane-topics
I've made a few changes to this Hack
- optimized/less code
- works with "Newest First" now too
- no need to manually create postbit_first
Fell free to use it if you want.
Very nice. Just needed to add AdSense.
Wordplay
04-24-2006, 10:49 AM
something really strange happened, i copied my postbit and pasted it into postbit_firstpost, installed the product and now i get this error:
Fatal error: Cannot redeclare get_editlevels() (previously declared in /home/digguh/public_html/board/includes/init.php(292) : eval()'d code:22) in /home/sigguh/public_html/board/includes/init.php(292) : eval()'d code on line 120 on everypage, everywhere. how is that possible?
my init.php file has NEVER been edited before. and i'm running 3.5.4.
how do i revert this if i cant get onto my forums?
Tyegurl
04-24-2006, 11:09 AM
you try
http://www.yoursite.com/yourforum/admincp/index.php????
GrendelKhan{TSU
04-25-2006, 10:14 AM
sorry if this was asked, but is there a way to restrict this to only certain forums?
MissKalunji
04-25-2006, 10:15 AM
how does the "Last Update " work?
bump
Tyegurl
04-25-2006, 01:01 PM
bump
i haven't had a problem yet...just have to remind myself when there is a postbit edit that i have to edit the postbit_first template too...usually i just copy and paste lol.
kurtbarker
04-27-2006, 11:01 AM
this is an awesome hack
just got a couple of questions...
can this be done on an individual level... so, set the default forums to show first post of each page via ACP, but then allow members to turn it on and off via the User CP for where they want...
That would make a great addition as members have already asked me for that ability
almukmin
04-27-2006, 01:05 PM
Also another addon is, can you make that I can enter specific info to be displayed for the first post for each thread?
MissKalunji
04-27-2006, 01:37 PM
i haven't had a problem yet...just have to remind myself when there is a postbit edit that i have to edit the postbit_first template too...usually i just copy and paste lol.
i meant to ask you know like here....
it says last update : with the date
i wanted to know how THIS works how do you do it that way?
Tyegurl
04-27-2006, 01:45 PM
i meant to ask you know like here....
it says last update : with the date
i wanted to know how THIS works how do you do it that way?
gotcha lol and that i have been wondering myself....must be strictly vbulletin template or post template..
MissKalunji
04-27-2006, 02:03 PM
Well let me know if you figure out :-p and i'll do the same
michaelsilvia
04-27-2006, 02:08 PM
INSTALLED. Useful hack, but may have been better if you set the plug in as "on" vice off. I had to go through all my forums individually and turn them on. Not complaining, just a suggestion.
Boofo
05-02-2006, 12:36 PM
Here is the template and the icon on the left. Just copy and paste the text into the firstpost template and upload firstpost.gif to images directory
Can we see a pic of it, please? ;)
AndyP
05-16-2006, 02:07 AM
Just installed this. I love the idea, as I can see a couple of the forum areas on our site where it will be really handy. Thanks.
At this stage, everything appears to be fine, I might get around to editing the template, so the initial post stands out a little more, later on.
HeLLCiTo
05-18-2006, 02:42 PM
i install it, all ok , but normal posbit_first show avatar on de top, and a want it like a normal post(vertical), at the left, anyone can post template for it?
thanks a lot.
Scharesoft
05-22-2006, 01:42 PM
Is it possible to make, that you can choose if the first post should be always the first in every thread? Not in a hole forum... I mean that if someone makes a new thread he can decides if the first post should be the first post of every site.
Is the origianal hack that vbulletin.org uses free to download?
Fidox
06-16-2006, 12:49 PM
Great add-on, thank you.
I got one question. Is there a way how to display page navigation and thread toolbar BELOW the first post (exactly like it is here at vbulletin.org)? I am playing with this three hours with no luck...
KOKS@LN
06-16-2006, 02:02 PM
INSTALLED. Useful hack, but may have been better if you set the plug in as "on" vice off. I had to go through all my forums individually and turn them on. Not complaining, just a suggestion.
It was already explained how to easily enable all the forums to show first message on all pages.
https://vborg.vbsupport.ru/showpost.php?p=822900&postcount=166
To be able to run SQL Queries, you need to put your member ID in your config.php
// ****** USERS WITH QUERY RUNNING PERMISSIONS ******
$config['SpecialUsers']['canrunqueries'] = '';
RFViet
06-16-2006, 02:29 PM
I would be great if someone can share a nice template :D
MissKalunji
06-16-2006, 03:14 PM
theres 2 attached to the thread you didnt see them?
MissKalunji
08-05-2006, 12:42 PM
will that one work with 3.6?
armkbdotcom
08-05-2006, 07:16 PM
Need template for 3.6, attached templates are not going to be good.
PimvanJ
08-06-2006, 12:31 PM
Installing the product, making a new template copy the code from postbit
When enabling "Show First Post On Every Page" I'm getting this MySql error:
Database error in vBulletin 3.5.4:
Invalid SQL:
SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
user.*, userfield.*, usertextfield.*,
icon.title as icontitle, icon.iconpath,
avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,
deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,
editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
editlog.reason AS edit_reason,
post_parsed.pagetext_html, post_parsed.hasimages,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
, IF(SUM(photoplog_fileuploads.moderate) > 0 AND 1 = 0,COUNT(photoplog_fileuploads.moderate) - SUM(photoplog_fileuploads.moderate),COUNT(photoplo g_fileuploads.moderate)) AS photoplog_filecount
FROM post AS post
LEFT JOIN user AS user ON(user.userid = post.userid)
LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
LEFT JOIN icon AS icon ON(icon.iconid = post.iconid)
LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
LEFT JOIN deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND type = 'post')
LEFT JOIN editlog AS editlog ON(editlog.postid = post.postid)
LEFT JOIN post_parsed AS post_parsed ON(post_parsed.postid = post.postid AND post_parsed.styleid_code = -1 AND post_parsed.styleid_html = -1 AND post_parsed.styleid_php = -1 AND post_parsed.styleid_quote = -1)
LEFT JOIN photoplog_fileuploads AS photoplog_fileuploads ON(photoplog_fileuploads.userid = user.userid)
WHERE post.postid IN (0,13126,13126)
ORDER BY post.dateline;
MySQL Error : Mixing of GROUP columns (MIN(),MAX(),COUNT()...) with no GROUP columns is illegal if there is no GROUP BY clause
Error Number : 1140
Date : Sunday, August 6th 2006 @ 03:19:36 PM
Script : mydomain/showthread.php?t=3249
Referrer : mydomain/forumdisplay.php?f=55
IP Address : my Ip
Username : Pim
Classname : vb_database
No code master yet, so can anyone tell me what going wrong here?
PimvanJ
08-14-2006, 06:25 PM
No one?
Aneurysm
08-14-2006, 11:10 PM
I have done some searching but cant find anything, is this available for VB 3.6?
PimvanJ
08-16-2006, 03:01 PM
Anyone installing this as product in Vb 3.5.4 and get it work right out the box?
Harley D
08-17-2006, 04:10 PM
Installing the product, making a new template copy the code from postbit
When enabling "Show First Post On Every Page" I'm getting this MySql error:
No code master yet, so can anyone tell me what going wrong here?
Database error in vBulletin 3.5.4:
Invalid SQL:
SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
user.*, userfield.*, usertextfield.*,
icon.title as icontitle, icon.iconpath,
avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,
deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,
editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
editlog.reason AS edit_reason,
post_parsed.pagetext_html, post_parsed.hasimages,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
, IF(SUM(photoplog_fileuploads.moderate) > 0 AND 1 = 0,COUNT(photoplog_fileuploads.moderate) - SUM(photoplog_fileuploads.moderate),COUNT(photoplo g_fileuploads.moderate)) AS photoplog_filecount
FROM post AS post
LEFT JOIN user AS user ON(user.userid = post.userid)
LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
LEFT JOIN icon AS icon ON(icon.iconid = post.iconid)
LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
LEFT JOIN deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND type = 'post')
LEFT JOIN editlog AS editlog ON(editlog.postid = post.postid)
LEFT JOIN post_parsed AS post_parsed ON(post_parsed.postid = post.postid AND post_parsed.styleid_code = -1 AND post_parsed.styleid_html = -1 AND post_parsed.styleid_php = -1 AND post_parsed.styleid_quote = -1)
LEFT JOIN photoplog_fileuploads AS photoplog_fileuploads ON(photoplog_fileuploads.userid = user.userid)
WHERE post.postid IN (0,13126,13126)
ORDER BY post.dateline;
MySQL Error : Mixing of GROUP columns (MIN(),MAX(),COUNT()...) with no GROUP columns is illegal if there is no GROUP BY clause
Error Number : 1140
Date : Sunday, August 6th 2006 @ 03:19:36 PM
Script : mydomain/showthread.php?t=3249
Referrer : mydomain/forumdisplay.php?f=55
IP Address : my Ip
Username : Pim
Classname : vb_database
Same error on my 3.54 board, can anyone please help?
PimvanJ
08-17-2006, 07:27 PM
It can work on 3.5.4 and even on 3.5.5 look here...
http://www.sevenstring.org/forum/showthread.php?t=1287
I'm complete lost with this error I have absolutely no idea where to look for it.
Any help is highly appreciated.
Pim
MissKalunji
08-23-2006, 01:56 PM
working on 3.6
Serkan Yılmaz
08-24-2006, 03:12 PM
Bu dosya 3 6 0 sürümüne olurmu ?denilenleri yaptım ama çıkmadı
MissKalunji
08-24-2006, 09:38 PM
only one thing the multi quote doesnt work...when that hack is installed
PimvanJ
09-07-2006, 08:33 AM
I'm clearing the showthread_query a little and deleted all code for attachments viewing.
This code is left in the showthread_query.
_______________________________
if ($forum['showfirstpost'])
{
$ids .= ",$thread[firstpostid]";
$postids = "post.postid IN (0" . $ids . ")";
_______________________________
The db error disappear and all seems to work..... -postbit_first template shows up- .......but only on the first page.:(
Why is that?
Any help is mostly appreciated.
HeLLCiTo
09-17-2006, 06:52 AM
this version works, in 3.6 ??? i have 1.0.0, that not work
Didn't work for me. 3.6.0 version
djjeffa
09-25-2006, 02:20 AM
this version works, in 3.6 ??? i have 1.0.0, that not work
same here but im wondering if there is a way to make it an option in any post instead of making it everyone in that section.
ehsanix
09-29-2006, 06:20 PM
thank u for this usefull hack...
Neutral Singh
10-01-2006, 06:06 AM
works with 3.6.1 flawlessly... :)
aveon
10-10-2006, 10:58 PM
it doesnt work for 3.6.x can u guys update it please
MissKalunji
10-10-2006, 11:03 PM
yes it does
www.dancehallareaz.com/forum/
go in announcement u'll see for yourself
snowlion
10-13-2006, 12:06 PM
me too, it work with 3.6.x
ehsanix
10-14-2006, 06:09 PM
it's shows first post horizontally
but i want it to be vertically
please help me http://qsmile.com/qsimages/43.gif
snowlion
10-16-2006, 10:40 AM
t's shows first post horizontally
but i want it to be vertically
please help me
copy and paste your postbit_legacy into postbit_first template
tgralex
10-22-2006, 02:36 AM
I was looking for that hack for a long time!
And I am yet step away of using it...
I have installed the XML file and I can tell that
There is a new "Show first post on every thread page?" field in each forum's property (I can set it to "Yes")
There is new showfirstpost field in the forum table
But what I can't find - how to "create a new template called 'postbit_first' "...
I just simply don't have it in my style and there is no button to create a new template...
Please help!
I am using the latest version 3.6.2
brvheart
10-22-2006, 05:42 PM
will mutilquote system work on this if I copy/paste postbiy or postbit_legacy to the postbit_first template?
brvheart
10-22-2006, 10:24 PM
also any way to keep the first post seperate rather than it looking like just another post?
tgralex
10-24-2006, 03:19 AM
also any way to keep the first post seperate rather than it looking like just another post?
Here you go: http://www.vbulletin.com/forum/showthread.php?p=1237638#post1237638
brvheart
10-24-2006, 03:08 PM
well...I read that it just linked back to this post...
What I am looking for is a way to make it look like they do here....so that the first post stands out like the release section...
tgralex
10-24-2006, 07:39 PM
I was looking for that hack for a long time!
And I am yet step away of using it...
I have installed the XML file and I can tell that
There is a new "Show first post on every thread page?" field in each forum's property (I can set it to "Yes")
There is new showfirstpost field in the forum table
But what I can't find - how to "create a new template called 'postbit_first' "...
I just simply don't have it in my style and there is no button to create a new template...
Please help!
I am using the latest version 3.6.2
Disregard my that post - I got the answer...
I have installed it - Great job!!!
BTW, I use vertical (old) stile of posts and for firstpost I copied not postbit_legacy, but postbit template and I have the first post in my threads very different from others - looks good!
In addition, I remember, that somebody was complaining that changing every forum to set to show first post field to "yes" is not fun...
Agree, and what I did instead - just run a query to set all my forums to show first post:
UPDATE XX_forum
set showfirstpost = 1
(instead of XX put whatever starting you have for your forum)
1 sec and all forums are set :)
Thanks!
tgralex
10-25-2006, 03:16 AM
Even though I liked the feature, for some users it was kind of unusual... and they want the old way back. So I decided to make it user choice.
Here how I accomplished it:
Added a new user Field, with "Yes"/"No" option (in my case field was field8)
Opened Plugin Manager and slightly changed templates First Post On All Pages only the folowing two hooks:
showthread_post_start and showthread_query
in both plugins right in the first IF statement's condition I added following line:
AND $vbulletin->userinfo[field8]=='Yes'
so instead of
if ($forum['showfirstpost'])
this
if ($forum['showfirstpost'] AND $vbulletin->userinfo[field8]=='Yes')
Note that Field8 is my user-defined field and in your case you need to replace with the one you create in your system.
That is it - I am happy and my users have a choice and they are happy too :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.