Thread: Add-On Releases - MMstore RC2 (sell real items)
View Single Post
  #54  
Old 07-10-2006, 10:40 AM
SkyCatcher's Avatar
SkyCatcher SkyCatcher is offline
 
Join Date: Feb 2003
Location: Germany
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This will display a table on on your index page listing the newest added items from the mmstore.

You can adjust how many items to display in the adminCP under mmstore settings > forumhome items. Use a 0 to disable the table completely.

Instructions also found in the text file.
Install Time: about 5 minutes at most
Difficulty: Moderate (Requires 1 sql query to be run before installation)

Sql Queries to add: 1
Template Edits: 2
File Edits: 0
Files to upload via FTP: 1
Plugin Imports: 1



Install Instructions:


Execute this SQL query:
------------------------

ALTER TABLE `mmstore_settings` ADD `forumhomeitems` INT( 11 ) DEFAULT '0' NOT NULL ;



Upload the Plugin:
------------------

Upload the xml file through the AdminCP under Upload a Plugin and select mmstore_forumhomeitems.xml from your PC.


Upload the new mmstore_admin.php file to your server:
-----------------------------------------------------

Upload the mmstore_admin.php file to your /admincp folder and overwrite the original file.


Add the following new template:
-------------------------------

Template name: mmstore_new_items_forumhome

Code:
<td class="alt1" colspan="5" align="center" width="5%"><a 

href="mmstore.php?do=viewitemid&itemid={$mmstorenewitems[itemid]}">$mmstorenewitems[itemname]</a><br>Price 

$mmstoresettings[paysymble]$mmstorenewitems[price]<br><a href="$mmstorenewitems[itemimage]" target=_blank><img 

src="$mmstorenewitems[itemimage]" width="50" height="50" align="center"></td>

Edit FORUMHOME > FORUMHOME Template:
------------------------------------

Place this code wherever you'd like the table to be displayed.


Code:
<if condition="$mmstoresettings['forumhomeitems'] > 0">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 

align="center">
<tr>

<td colspan="100%" class="tcat" $catbgcode><a style="float:$stylevar[right]" href="#top" onclick="return 

toggle_collapse('mmstore_new_items_forumhome')"><img id="collapseimg_mmstore_new_items_forumhome" 

src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_vbshout].gif" alt="" border="0" /></a><b><a 

href="mmstore.php">Neue Arktikel im Probetreff Shop</a></b></td>
</tr>

<tbody id="collapseobj_mmstore_new_items_forumhome" style="$vbcollapse[collapseobj_mmstore_new_items_forumhome]">
<tr>$shownewitems</tr>
</tbody>
</table>
<br />
</if>

Finished!

Credit for the hack goes to micheal332001.

3.5.4 Hack > https://vborg.vbsupport.ru/showthread.php?t=120100
3.6.0 Beta3 > https://vborg.vbsupport.ru/showthread.php?t=120143
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01224 seconds
  • Memory Usage 1,776KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)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
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete