Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 07-16-2005, 12:50 PM
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Location: Jerusalem
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default forum extension pages required

i have this hack which i translate it for u which give u to add some pages to ur forum with Html codes emmm i want to make it for 3.5.0 but dont know how ????
this hack was maden by some one called fnan4arab i search on him here in ur members ship but i dont foud him ... so i put it to find help 1
any way here it is

add to ur database this Sql
PHP Code:
CREATE TABLE vbotherpage(
  
id int(10unsigned NOT NULL auto_increment,
  
name varchar(50NOT NULL default '',
  
descr varchar(50NOT NULL default '',
  
content text NOT NULL,
  
PRIMARY KEY  (id)
TYPE=MyISAM
add this templates to ur style

give it otherpage name:-

PHP Code:
$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
    <!-- 
no cache headers -->
    <
meta http-equiv="Pragma" content="no-cache" />
    <
meta http-equiv="Expires" content="-1" />
    <
meta http-equiv="Cache-Control" content="no-cache" />
    <!-- 
end no cache headers -->
    <
title>$vboptions[bbtitle] - extension pages</title>
    
$headinclude
</head>
<
body>
$header
$navbar

<!-- main -->
<
table cellpadding="$stylevar[outerborderwidth]cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]align="center"><tr><td>
<
table cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%">
<
tr align="center">
  <
td class="thead" width="50%" align="center"><span class="smallfont"><b>Name</b></span></td>
  <
td class="thead" width="50%"><span class="smallfont"><b>discription</b></span></td>
</
tr>
$thepage
<tr>
    <
td class="tfoot" colspan="2" align="center"><span class="smallfont"><b>$vboptions[bbtitle]</b></span></td>
</
tr>
</
table>
</
td></tr></table>
<!-- /
main -->

$footer
</body>
</
html
add this template and give it otherpage_bit name
PHP Code:
<tr align="center">
    <
td class="alt1Active" colspan="0" align="center">
    <
table cellpadding="0" cellspacing="0" border="0"><tr>
        <
td>
        <
a href="?id=$row[id]"><b>$row[name]</b></a></td>
    </
tr></table>
    </
td>
<
td class="alt2"><span class="normalfont">$row[descr]</span></td></tr

now go to ur admincp/index.php and make those changes to it .

find
PHP Code:
// cache nav prefs
    
can_administer();
    
construct_nav_spacer(); 
add after it :-

PHP Code:
// Other Page // extenstion pages  By fnan4arab 
        
construct_nav_option("add a new page""opageadmin.php?do=add");
        
construct_nav_option("edit page""opageadmin.php?do=edit");
        
construct_nav_group("extenstion pages"); 
upload the file opageadmin.php to ur /forum/admincp
upload the file page.php to ur /forum .

http://www.domain.com/forum/page.php
Attached Files
File Type: php opageadmin.php (4.1 KB, 7 views)
File Type: php page.php (1.6 KB, 8 views)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03715 seconds
  • Memory Usage 2,211KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete