PDA

View Full Version : Remove 'poll' prefix only from a certain subforum?


Areku
05-21-2003, 12:03 PM
Is it possible to remove the 'Poll:' prefix from poll'ed threads on a single subforum?

If so, how?


PLEEEASE! ;)

Dean C
05-21-2003, 12:55 PM
Check forumdisplay.php and just surround the code that echo's "Poll" with an if statement :)

- miSt

Areku
05-21-2003, 07:12 PM
Mind translating your sentence to PHP? ;)

Sebastian
05-21-2003, 09:45 PM
Mist, a good hacker knows that vbulletin files does not echo directly, and "Poll:" is acutally stored in the database;)

Areku:

Open forumdisplay.php and find:

if ($thread[pollid]!=0) {
$thread[typeprefix]=$pollthreadprefix;
}


replace with:


if ($forumid== y OR z) {
$pollthreadprefix = "";
}
if ($thread[pollid]!=0) {
$thread[typeprefix]=$pollthreadprefix;
}


edit "y" and "z" with the forum Id's of the forums you do not want the "poll:" to appear.

Areku
05-26-2003, 07:22 AM
Thank you Sebastian!!!

Dean C
05-26-2003, 09:26 AM
05-21-03 at 11:45 PM Sebastian said this in Post #4 (https://vborg.vbsupport.ru/showthread.php?postid=398244#post398244)]Mist, a good hacker knows that vbulletin files does not echo directly, and "Poll:" is acutally stored in the database;)



Ooopseee ;)