• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Simple forum script

Status
Not open for further replies.
this forum+otforum 2.0 = pwnage
 
Is it possible to make board accessible(or better visible)only for accounts with groupid higher than selected value?
 
How can this be:
I did this correctly(I think), but when I click on server forum i just get a blanco page:S

Any help please?!
 
I get this error when Im trying to post a thread
PHP:
Fatal error: Call to a member function fetchAll() on a non-object in C:\xampp\htdocs\forum.php on line 202

Line 202 in my forum.php looks like this
PHP:
$threads = $SQL->query("SELECT `players`.`name`, `players`.`account_id`, `players`.`world_id`, `players`.`rank_id`, `players`.`vocation`, `players`.`promotion`, `players`.`level`, `z_forum`.`id`,`z_forum`.`first_post`, `z_forum`.`section`,`z_forum`.`post_text`, `z_forum`.`post_topic`, `z_forum`.`post_date`, `z_forum`.`post_smile`, `z_forum`.`author_aid`, `z_forum`.`author_guid`, `z_forum`.`last_edit_aid`, `z_forum`.`edit_date` FROM `players`, `z_forum` WHERE `players`.`id` = `z_forum`.`author_guid` AND `z_forum`.`first_post` = ".(int) $thread_id." ORDER BY `z_forum`.`post_date` LIMIT ".$posts_per_page." OFFSET ".($page * $posts_per_page))->fetchAll();
 
This is rox men :p

Would be better for image if you do this

Look for:
Code:
	while(stripos($text, '[img]') !== false && stripos($text, '[/img]') !== false )
	{
		$img = substr($text, stripos($text, '[img]')+5, stripos($text, '[/img]') - stripos($text, '[img]') - 5);
		$text = str_ireplace('[img]'.$img.'[/img]', '<img src="'.$img.'">', $text);
	}
And replace it with this:
Code:
	while(stripos($text, '[img]') !== false && stripos($text, '[/img]') !== false )
	{
		$img = substr($text, stripos($text, '[img]')+5, stripos($text, '[/img]') - stripos($text, '[img]') - 5);
		$text = str_ireplace('[img]'.$img.'[/img]', '<a href="'.$img.'"><img src="'.$img.'" height="350" width="450"></a>', $text);
	}

:p
 
Last edited by a moderator:
Fatal error: Call to a member function query() on a non-object in E:\OTSERVER\xampp\htdocs\server\forum.php on line 128
HM??
 
I cant seem to figure out why the " Forum " tab on my page isnt displaying , i tried following all the steps and its still not displaying? Any ideas why?
 
~ bump
Still desperately need a solution to this!
config/config.php:
PHP:
...
$config['site']['forum_link'] = "";
...
Change it to:
PHP:
...
$config['site']['forum_link'] = "?subtopic=forum";
...
-------------------------
If you use newest acc. maker (for tfs 0.3.6) there is no link to 'forum' in layout 'tibiacom' and there is only one layout (in ooold version [0.3.4] were 3 layouts) :>
 
It doesn't show profession.

11t32wj.jpg


Any sugestions how to fix it?
 
but it doesnt work for me.. everything looks great but when im about to make a new thread nothing shows up.. just this

Boards >> News



Page:
No threads in this board.

So there is no button etc like (create new thread)
 
Status
Not open for further replies.
Back
Top