phpbb-auction.com Forum Index phpbb-auction.com
Download, Support, Documentation
 
Donate to phpbb-auction.com to support the project


phpbb-Auction
  Home
   - News
   - Bug report/Patches
   - Future Features
  Demo
  Downloads
   - Version 1.3m  (Core /Lang /Mods)
   - Version 1.2m  (Core /Lang /Mods)
   - Version 1.0m  (Core /Lang /Mods)
   - All
  Services
  Documentation
   - Features
   - Documents
   - How-Tos
   - About
  Support
   - English
   - German
  Development
   - Changlog
   - Requests
   - Team
   - CVS
  Community
   - Website of the Month
   - Websites
   - Community Forum
   - Member

Navigation
FAQFAQ
SearchSearch
UsergroupsUsergroups
RegisterRegister
ProfileProfile
Log in to check your private messagesLog in to check your private messages
Log inLog in

Forum
Changing start time auctions
Sun Feb 07, 2010 4:33 am FR
Easy: what code to use to update sql table?
Fri Oct 16, 2009 8:39 am guyb
Unlimited products(downloads)
Wed Oct 14, 2009 7:09 pm hoimyr
Seller chooses currency
Sun Oct 11, 2009 8:00 pm hoimyr
Cant select end date without getting error
Sun Oct 11, 2009 6:43 pm hoimyr

About
Author: FR
Credits:
Brookfresh, Brad Lawryk, Crogon, DaMysterious, EklipzeDesigns, ML, musashi, phpBB Group, phpBB-Auction-Team, php-styles, sanman, Tel, Vampy, wGEric

Supported Sites





Statistics
User: 21030
Posts: 18401
Latest User: canadianpharmacyndakax

links block - can u please help?

 
Post new topic   Reply to topic    phpbb-auction.com Forum Index -> Feature Request
View previous topic :: View next topic  
Author Message
st.luke
Mid-Cap Auctioneer
Mid-Cap Auctioneer


Joined: 26 May 2005
Posts: 57

PostPosted: Sun Jul 24, 2005 2:27 pm    Post subject: links block - can u please help? Reply with quote

i have been searching & searching for a links block the the ones you have on this site for 'supported sites' & 'sponsors' & i cant find anything anywhere Crying or Very sad ive found something very close & i almost have it working, but with my limited knowledge i just cant work it out.

ive installed Advanced Links Mod 1.2.2b & its working fine on my forum index page. Ive played around a bit & got it to show up on the auction page, but the images wont display. See Here


here is the install file:

Code:
##############################################################
## MOD Title: Advanced Links Mod
## MOD Author: stefan2k1 < sp@phpbb2.de > (Stefan Paulus) http://www.phpbb2.de
##          CRLin (Demo 1: http://mail.dhjh.tcc.edu.tw/~gzqbyr/Hestia/links.php)
##                   (Demo 2: http://mail.dhjh.tcc.edu.tw/~gzqbyr/phpBB/links.php)
## MOD Description: Display links (with logo) on the forum index page.
## MOD Version: 1.2.2
##
## Installation Level: (Easy)
## Installation Time: 8-10 Minutes
## Files To Edit: index.php, constants.php, index_body.tpl, lang_admin.php
## Included Files: links.php
##          links.js.php
##         link_register.php
##         admin/admin_links.php
##         admin/admin_links_cat.php
##         admin/admin_links_config.php
##         language/lang_english/lang_main_link.php
##         language/lang_english/lang_admin_link.php
##         language/lang_english/email/link_add.tpl
##         templates/subSilver/links_body.tpl
##         templates/subSilver/links_index.tpl
##         templates/subSilver/links_popnew.tpl
##         templates/subSilver/links_search.tpl
##         templates/subSilver/links_js_body.tpl
##         templates/subSilver/admin/admin_links_body.tpl
##         templates/subSilver/admin/admin_links_edit_body.tpl
##         templates/subSilver/admin/admin_link_cat_body.tpl
##         templates/subSilver/admin/admin_link_cat_delete_body.tpl
##         templates/your_template/admin/admin_link_cat_edit_body.tpl
##         templates/your_template/admin/admin_link_cat_new_body.tpl
##         templates/your_template/admin/admin_link_config_body.tpl
##         images/links/web_logo88a.gif
##         images/links/phpBB_88a.gif
##         images/links/phpbb-tw_logo88a.gif
##         images/links/phpbb2_de_logo.gif
##         images/links/forum_images_banner_88x31.gif
##         images/links/no_logo88a.gif
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes: This Mod was originally created by OOHOO, most Credits are given to him.
##       Credits also go to ddonker from www.portedmods.com to help with the Admin Stuff.
##        The Mod got several enhancements and Bugfixes since Version 1.1.0.
##       Administration has more comfort and no need of editing Config Files anymore.
##
##############################################################
## MOD History:
##
##   2002-04-25 - Version 1.1.0
##      - initial Release by OOHOO
##   2003-01-19 - Version 1.1.1
##      - added links_install.php and missing Code in readme
##   2003-06-15 - Version 1.2.0
##      - Enhancements and Bugfixes, phpBB 2.0.4 compatible
##   2003-12-03 - Version 1.2.1
##      - enhancements, Site Category showed first and Search Site
##      - while Link added, send e-mail or notify on private message to site admins
##   2004-05-10 - Version 1.2.2
##      - lock user submit site, Administration can submit site from ACP
##      - allow submit site without banner
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ COPY ]------------------------------------------
#

copy links.php to your forums root directory, i.e. /phpBB2/
copy links_js.php to your forums root directory, i.e. /phpBB2/
copy link_register.php to your forums root directory, i.e. /phpBB2/
copy admin_links.php to admin/admin_links.php
copy admin_links_cat.php to admin/admin_links_cat.php
copy admin_links_config.php to admin/admin_links_config.php
copy lang_main_links.php to language/lang_english/lang_main_links.php
copy lang_admin_links.php to language/lang_english/lang_admin_links.php
copy link_add.tpl to language/lang_english/email/link_add.tpl
copy links_index.tpl to templates/subSilver/links_index.tpl
copy links_body.tpl to templates/subSilver/links_body.tpl
copy links_popnew.tpl to templates/subSilver/links_popnew.tpl
copy links_search.tpl to templates/subSilver/links_search.tpl
copy links_js_body.tpl to templates/subSilver/links_js_body.tpl
copy admin_links_body.tpl to templates/subSilver/admin/admin_links_body.tpl
copy admin_links_edit_body.tpl to templates/subSilver/admin/admin_links_edit_body.tpl
copy admin_link_cat_body.tpl to templates/subSilver/admin/admin_link_cat_body.tpl
copy admin_link_cat_delete_body.tpl to templates/subSilver/admin/admin_link_cat_delete_body.tpl
copy admin_link_cat_edit_body.tpl to templates/subSilver/admin/admin_link_cat_edit_body.tpl
copy admin_link_cat_new_body.tpl to templates/subSilver/admin/admin_link_cat_new_body.tpl
copy admin_link_config_body.tpl to templates/subSilver/admin/admin_link_config_body.tpl
copy web_logo88a.gif to images/links/web_logo88a.gif
copy phpBB_88a.gif to images/links/phpBB_88a.gif
copy phpbb-tw_logo88a.gif to images/links/phpbb-tw_logo88a.gif
copy phpbb2_de_logo.gif to images/links/phpbb2_de_logo.gif
copy forum_images_banner_88x31.gif to images/links/forum_images_banner_88x31.gif
copy no_logo88a.gif to images/links/no_logo88a.gif

#
#-----[ COPY ]------------------------------------------
#

copy links_install.php to your forums root directory and run it from your browser

#
#-----[ OPEN ]------------------------------------------
#

includes/constants.php

#
#-----[ FIND ]------------------------------------------
#

define('PAGE_GROUPCP', -11);

#
#-----[ AFTER, ADD ]------------------------------------------
#

define('PAGE_LINKS', -14);

#
#-----[ FIND ]------------------------------------------
#

define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');

#
#-----[ AFTER, ADD ]------------------------------------------
#

define('LINKS_TABLE', $table_prefix.'links');
define('LINK_CATEGORIES_TABLE', $table_prefix.'link_categories');
define('LINK_CONFIG_TABLE', $table_prefix.'link_config');

#
#-----[ OPEN ]------------------------------------------
#

language/lang_english/lang_admin.php

#
#-----[ AT THE END, ADD ]-------------------------------
#

$lang['Links'] ='Links Admin';

#
#-----[ OPEN ]------------------------------------------
#

index.php

#
#-----[ FIND ]------------------------------------------
#

init_userprefs($userdata);

#
#-----[ AFTER, ADD ]------------------------------------------
#

require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_link.' . $phpEx);

#
#-----[ FIND ]------------------------------------------
#

$is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_data);

#
#-----[ AFTER, ADD ]------------------------------------------
#

$sql = "SELECT *
      FROM ". LINK_CONFIG_TABLE;
   if(!$result = $db->sql_query($sql))
   {
      message_die(GENERAL_ERROR, "Could not query Link config information", "", __LINE__, __FILE__, $sql);
   }
   
   while( $row = $db->sql_fetchrow($result) )
   {
      $link_config_name = $row['config_name'];
      $link_config_value = $row['config_value'];
      $link_config[$link_config_name] = $link_config_value;
      $link_self_img = $link_config['site_logo'];
      $site_logo_height = $link_config['height'];
      $site_logo_width = $link_config['width'];
   }

#
#-----[ FIND ]------------------------------------------
#

'L_ONLINE_EXPLAIN' => $lang['Online_explain'],

#
#-----[ AFTER, ADD ]------------------------------------------
#

      'L_LINKS' => $lang['Site_links'],
      'U_LINKS' => append_sid("links.$phpEx"),
      'U_LINKS_JS' => "links.js.$phpEx",
      'U_SITE_LOGO' => $link_self_img,
      'SITE_LOGO_WIDTH' => $site_logo_width,
      'SITE_LOGO_HEIGHT' => $site_logo_height,

#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/index_body.tpl

#
#-----[ FIND ]------------------------------------------
#

<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">

#
#-----[ BEFORE, ADD ]------------------------------------------
#

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr>
   <td class="catLeft" width="100%" height="22"><span class="cattitle"><a href="{U_LINKS}" class="cattitle">{L_LINKS}</a></span></td>
   <td class="catRight" nowrap="nowrap" align="center"><span class="cattitle">{SITENAME}</span></td>
  </tr>
  <tr>
   <td class="row1" nowrap="nowrap"><iframe marginwidth="0" marginheight="0" src="{U_LINKS_JS}" frameborder="0" scrolling="no" width="100%" height="{SITE_LOGO_HEIGHT}"></iframe></td>
   <td class="row2" nowrap="nowrap"><img src="{U_SITE_LOGO}" alt="{SITENAME}" width="{SITE_LOGO_WIDTH}" height="{SITE_LOGO_HEIGHT}" border="0" /></td>
  </tr>
</table>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM





i got stuck when i came to adding the code to auction.php, i couldnt find
Code:
$is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_data);
so i didnt know where to add the code. ive tried a few different things but nothing seems to work.

could you please let me know what to do FR, this is driving me crazy, is there a mod written for the blocks on this site or did u do it yourself? would much appreciate your help

cheers!
Back to top
View user's profile Send private message
FR
Site Admin
Site Admin


Joined: 26 Jan 2004
Posts: 1764
Location: root directory

PostPosted: Sun Jul 24, 2005 4:07 pm    Post subject: Reply with quote

do you need a block with links or an overall system to adminstrate those links ??

in case of the first one it takes me seconds to give you the code.
_________________
Want to say thank you. Use my Amazon Wishlist
Meet the world on movie-on.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
st.luke
Mid-Cap Auctioneer
Mid-Cap Auctioneer


Joined: 26 May 2005
Posts: 57

PostPosted: Mon Jul 25, 2005 12:37 am    Post subject: Reply with quote

thanx! i would like to have the admin part, (thats why ive showd you this advanced links mod, because the way it works is great) but for now id be just glad to have anything, i dont mind if i have to add the links manually.. Smile
Back to top
View user's profile Send private message
FR
Site Admin
Site Admin


Joined: 26 Jan 2004
Posts: 1764
Location: root directory

PostPosted: Mon Jul 25, 2005 1:06 pm    Post subject: Reply with quote

maybe you can work with that.
http://www.php-styles.com/viewtopic.php?t=41

(its on php-styles.com as it is not really auction related)
_________________
Want to say thank you. Use my Amazon Wishlist
Meet the world on movie-on.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
st.luke
Mid-Cap Auctioneer
Mid-Cap Auctioneer


Joined: 26 May 2005
Posts: 57

PostPosted: Mon Jul 25, 2005 2:30 pm    Post subject: Reply with quote

thats perfect thank you!!!! Very Happy



do u know where i find the code for the supported sites block?
Back to top
View user's profile Send private message
FR
Site Admin
Site Admin


Joined: 26 Jan 2004
Posts: 1764
Location: root directory

PostPosted: Mon Aug 01, 2005 12:52 am    Post subject: Reply with quote

st.luke wrote:
thats perfect thank you!!!! Very Happy



do u know where i find the code for the supported sites block?


sorrz> no idea about mod-pages
_________________
Want to say thank you. Use my Amazon Wishlist
Meet the world on movie-on.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Crogon
Moderator
Moderator


Joined: 17 May 2004
Posts: 574
Location: Anywhere I'm needed.. which is usually everywhere. ;)

PostPosted: Thu Aug 25, 2005 1:04 am    Post subject: Reply with quote

Just to let you know, I'll move this into the mods section soon. Wink
_________________
<a href="http://www.spreadfirefox.com/?q=affiliates&id=81650&t=55"><img border="0" alt="Get Firefox!" title="Get Firefox!" src="http://sfx-images.mozilla.org/affiliates/Buttons/180x60/trust.gif"></a>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    phpbb-auction.com Forum Index -> Feature Request All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


phpbb-auction.com - Developed by www.digital-media-lab.com
Sponsored by: www.globibo.com - www.learn2go.de - www.talentone.org - www.language-school.in - www.ping-ke.cn