форум vBSupport.ru > vBulletin > Вопрос — Ответ > Помогите найти!
Register Меню vBsupport Изображения Files Manager О рекламе Today's Posts Search
  • Родная гавань
  • Блок РКН снят
  • Premoderation
  • For English speaking users
  • Каталог Фрилансеров
  • If you want to buy some product or script
  • Администраторам
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже:
Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
ikopylov
Гуру
vBSNews
 
ikopylov's Avatar
Default PhotoPost vBGallery 3.0.2
0

Разыскивается
или нуленный (что лучше)
или оригинал, вытащить часть кода, который переделал немец под vb4.20
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Whity
Специалист
 
Whity's Avatar
Default
0

А что переделал немец, где об этом информация?
 
 
ikopylov
Гуру
vBSNews
 
ikopylov's Avatar
Default
0

Quote:
Originally Posted by Whity View Post
А что переделал немец, где об этом информация?
Из форумной переписки, какой-то узер, доработал вставку ссылок vbGallery в новый навбар 4.20
Chuck этот код использовал и тем самым обновив до новой версии 3.02 выпустив обновление
Code:
http://www.photopost.com/forum/1300169-post1.html
Прописать галерею(3.01) в новый навбар я прописал, но как-то криво работает
 
 
Whity
Специалист
 
Whity's Avatar
Default
3

речь об этом?


Quote:
Originally Posted by ausphotography
Here is a revised vBgallery product file for vB4.2.0+ Navigation Manager
Install it as normal via admincp (NOT via the vBgallery install/update)
It needs to be installed over the top of an existing install.

Replaces the file in ./upload/forum/admincp/product-ppvbgallery.xml

Changes:
- navigation markup
- phrases for navigation
- 2 news plugins for Navigation

I've only had it running in my test system
It is NOT fully tested, security may need tweaking

Enjoy! (unlimited permission given to re-use the new code)
____________

Ok, I cant upload the full file... here is the subset...

Update dependencies...
Code:
	<dependencies>
		<dependency dependencytype="vbulletin" minversion="4.2.0" maxversion="" />
	</dependencies>
Add to GLOBAL phrases after <phrasetype name="GLOBAL" fieldname="global">
Code:
			<phrase name="vb_navigation_tab_pptabgallery_text" date="1330920717" username="Kym" version="3.01"><![CDATA[Gallery]]></phrase>
			<phrase name="vb_navigation_link_ppmybrowse_text" date="1330920717" username="Kym" version="3.01"><![CDATA[My Images]]></phrase>
			<phrase name="vb_navigation_menu_ppmystuff_text" date="1330920717" username="Kym" version="3.01"><![CDATA[My Stuff]]></phrase>
			<phrase name="vb_navigation_link_ppmyfavorites_text" date="1330920717" username="Kym" version="3.01"><![CDATA[My Favorites]]></phrase>
			<phrase name="vb_navigation_link_ppmysubs_text" date="1330920717" username="Kym" version="3.01"><![CDATA[My Subscriptions]]></phrase>
			<phrase name="vb_navigation_link_ppmancats_text" date="1330920717" username="Kym" version="3.01"><![CDATA[Category Admin]]></phrase>
			<phrase name="vb_navigation_menu_ppnewimages_text" date="1330920717" username="Kym" version="3.01"><![CDATA[New Images]]></phrase>
			<phrase name="vb_navigation_link_ppnewlastvisit_text" date="1330920717" username="Kym" version="3.01"><![CDATA[Since your last visit]]></phrase>
			<phrase name="vb_navigation_link_ppnew1day_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Last 1 days]]></phrase>
			<phrase name="vb_navigation_link_ppnew2day_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Last 2 days]]></phrase>
			<phrase name="vb_navigation_link_ppnew5day_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Last 5 days]]></phrase>
			<phrase name="vb_navigation_link_ppnew10day_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Last 10 days]]></phrase>
			<phrase name="vb_navigation_link_ppnew25day_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Last 25 days]]></phrase>
			<phrase name="vb_navigation_menu_ppnewposts_text" date="1330920717" username="Kym" version="3.01"><![CDATA[New Comments]]></phrase>
			<phrase name="vb_navigation_link_ppnewplastvisit_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Since your last visit]]></phrase>
			<phrase name="vb_navigation_link_ppnewp1day_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Last 1 days]]></phrase>
			<phrase name="vb_navigation_link_ppnewpp2day_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Last 2 days]]></phrase>
			<phrase name="vb_navigation_link_ppnewp5day_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Last 5 days]]></phrase>
			<phrase name="vb_navigation_link_ppnewp10day_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Last 10 days]]></phrase>
			<phrase name="vb_navigation_link_ppnewp25day_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Last 25 days]]></phrase>
			<phrase name="vb_navigation_menu_pppopular_text" date="1337938859" username="Kym" version="3.01"><![CDATA[What's Popular]]></phrase>
			<phrase name="vb_navigation_link_pppoptopview_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Top Viewed Images]]></phrase>
			<phrase name="vb_navigation_link_pppoptoprate_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Top Rated Images]]></phrase>
			<phrase name="vb_navigation_link_pppoptopcomment_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Top Commented Images]]></phrase>
			<phrase name="vb_navigation_link_ppstats_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Gallery Statistics]]></phrase>
			<phrase name="vb_navigation_link_ppupload_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Upload]]></phrase>
			<phrase name="vb_navigation_menu_ppsearch_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Search]]></phrase>
			<phrase name="vb_navigation_link_ppsearchadv_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Advanced Search]]></phrase>
			<phrase name="vb_navigation_link_ppmoderate_text" date="1337938859" username="Kym" version="3.01"><![CDATA[Moderate New]]></phrase>
Add to plugins...
Code:
		<plugin active="1" executionorder="5">
			<title>Navigation - fix tabs when in gallery</title>
			<hookname>build_navigation_array</hookname>
			<phpcode><![CDATA[if (defined('PP_SCRIPT') AND PP_SCRIPT == 'vBGallery')
{
// code lifted / hacked from gallery_global.php 
	$navbarfile = array();
	$navbarfile['find'][] = '#^profile.php#';
	$navbarfile['replace'][] = '{options.bburl}' . '/profile.php';
	$navbarfile['find'][] = '#^private.php#';
	$navbarfile['replace'][] = '{options.bburl}' . '/private.php';
	$navbarfile['find'][] = '#^register.php#';
	$navbarfile['replace'][] = '{options.bburl}' . '/register.php';
	$navbarfile['find'][] = '#^search.php#';
	$navbarfile['replace'][] = '{options.bburl}' . '/search.php';
	$navbarfile['find'][] = '#^blog.php#';
	$navbarfile['replace'][] = '{options.bburl}' . '/blog.php';
	$navbarfile['find'][] = '#^content.php#';
	$navbarfile['replace'][] = '{options.bburl}' . '/content.php';
	$navbarfile['find'][] = '#^activity.php#';
	$navbarfile['replace'][] = '{options.bburl}' . '/activity.php';
	$navbarfile['find'][] = '#^forum.php#';
	$navbarfile['replace'][] = '{options.bburl}' . '/forum.php';
	
	// now we check if there are any other files added in acp by the user...
	$navbar_acp_replacearray = array();
	$navbar_acp_replacearray = explode("\r\n", $ppg_options['gallery_navbar_replace']);
	if(!empty($navbar_acp_replacearray))
	{
		foreach($navbar_acp_replacearray as $rp)
		{
			if(!in_array($rp, $navbarfile['find']) AND (strpos($rp, "test_") === false))
			{
				if(trim($rp))
				{
					$rp=trim($rp);
					$navbarfile['find'][] = '#^'.$rp.'#';
					$navbarfile['replace'][] = '{options.bburl}' . '/'.$rp;
				}
			}
		}
		unset ($rp);
	}
// now fix the TAB urls
	foreach ($result AS $navitem => &$navcontent)
	{ 
		if ($navcontent['navtype'] == 'tab')
		{
			$navcontent['url'] = preg_replace($navbarfile['find'], $navbarfile['replace'], $navcontent['url']);
		}
	}
	unset($navbarfile, $navbar_acp_replacearray);
	//debug// echo "\n\n<pre>\n".print_r($result,true)."\n</pre>\n";
}]]></phpcode>
		</plugin>
		<plugin active="1" executionorder="5">
			<title>Navigation - set tab active</title>
			<hookname>set_navigation_tab_fallback</hookname>
			<phpcode><![CDATA[if (defined('PP_SCRIPT') AND PP_SCRIPT == 'vBGallery') $root = 'pptabgallery';]]></phpcode>
		</plugin>
Add after the line with </options>
Code:
	<navigation>
		<tab name="pptabgallery" date="1337938859" username="Kym" version="3.01">
			<active>1</active>
			<show />
			<displayorder>50</displayorder>
			<url><![CDATA[{options.gallery_url}/index.php{session.sessionurl_q}]]></url>
		</tab>
		<link name="ppmybrowse" date="1337938859" username="Kym" version="3.01">	
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=member&imageuser={userinfo.userid}]]></url>
			<active>1</active>
			<show>member</show>
			<parent>pptabgallery</parent>
			<displayorder>10</displayorder>
		</link>
		<menu name="ppmystuff" date="1337938859" username="Kym" version="3.01">
			<active>1</active>
			<show>member</show>
			<parent>pptabgallery</parent>
			<displayorder>20</displayorder>
		</menu>			
	 	<link name="ppmyfavorites" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=favorites]]></url>
			<active>1</active>
			<show>member</show>
			<parent>ppmystuff</parent>
			<displayorder>10</displayorder>
		</link>
		<link name="ppmysubs" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=subscriptions]]></url>
			<active>1</active>
			<show>subscribe</show>
			<parent>ppmystuff</parent>
			<displayorder>20</displayorder>
		</link>
		<link name="ppmancats" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/managecats.php{session.sessionurl_q}]]></url>
			<active>1</active>
			<show>catmanager</show>
			<parent>ppmystuff</parent>
			<displayorder>30</displayorder>
		</link>
		<menu name="ppnewimages" date="1337938859" username="Kym" version="3.01">
			<active>1</active>
			<show>search</show>
			<parent>pptabgallery</parent>
			<displayorder>30</displayorder>
		</menu>	
		<link name="ppnewlastvisit" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=newimages&cutoffdate=lastvisit]]></url>
			<active>1</active>
			<show>member</show>
			<parent>ppnewimages</parent>
			<displayorder>10</displayorder>
		</link>
		<link name="ppnew1day" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=newimages&cutoffdate=1]]></url>
			<active>1</active>
			<show>member</show>
			<parent>ppnewimages</parent>
			<displayorder>20</displayorder>
		</link>
		<link name="ppnew2day" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=newimages&cutoffdate=2]]></url>
			<active>1</active>
			<show>member</show>
			<parent>ppnewimages</parent>
			<displayorder>30</displayorder>
		</link>
		<link name="ppnew5day" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=newimages&cutoffdate=5]]></url>
			<active>1</active>
			<show>member</show>
			<parent>ppnewimages</parent>
			<displayorder>40</displayorder>
		</link>
		<link name="ppnew10day" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=newimages&cutoffdate=10]]></url>
			<active>1</active>
			<show>member</show>
			<parent>ppnewimages</parent>
			<displayorder>50</displayorder>
		</link>
		<link name="ppnew25day" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=newimages&cutoffdate=25]]></url>
			<active>1</active>
			<show>member</show>
			<parent>ppnewimages</parent>
			<displayorder>60</displayorder>
		</link>
		<menu name="ppnewposts" date="1337938859" username="Kym" version="3.01">
			<active>1</active>
			<show>search</show>
			<parent>pptabgallery</parent>
			<displayorder>40</displayorder>
		</menu>	
		<link name="ppnewplastvisit" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=newposts&cutoffdate=lastvisit]]></url>
			<active>1</active>
			<show>member</show>
			<parent>ppnewposts</parent>
			<displayorder>10</displayorder>
		</link>
		<link name="ppnewp1day" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=newposts&cutoffdate=1]]></url>
			<active>1</active>
			<show>member</show>
			<parent>ppnewposts</parent>
			<displayorder>20</displayorder>
		</link>
		<link name="ppnewpp2day" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=newposts&cutoffdate=2]]></url>
			<active>1</active>
			<show>member</show>
			<parent>ppnewposts</parent>
			<displayorder>30</displayorder>
		</link>
		<link name="ppnewp5day" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=newposts&cutoffdate=5]]></url>
			<active>1</active>
			<show>member</show>
			<parent>ppnewposts</parent>
			<displayorder>40</displayorder>
		</link>
		<link name="ppnewp10day" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=newposts&cutoffdate=10]]></url>
			<active>1</active>
			<show>member</show>
			<parent>ppnewposts</parent>
			<displayorder>50</displayorder>
		</link>
		<link name="ppnewp25day" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=newposts&cutoffdate=25]]></url>
			<active>1</active>
			<show>member</show>
			<parent>ppnewposts</parent>
			<displayorder>60</displayorder>
		</link>
		<menu name="pppopular" date="1337938859" username="Kym" version="3.01">
			<active>1</active>
			<show>search</show>
			<parent>pptabgallery</parent>
			<displayorder>50</displayorder>
		</menu>
		<link name="pppoptopview" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=popimages&orderby=views]]></url> 
			<active>1</active>
			<show>member</show>
			<parent>pppopular</parent>
			<displayorder>10</displayorder>
		</link>
		<link name="pppoptoprate" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=popimages&orderby=rating]]></url> 
			<active>1</active>
			<show />
			<parent>pppopular</parent>
			<displayorder>20</displayorder>
		</link>
		<link name="pppoptopcomment" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/browseimages.php?{session.sessionurl}do=popimages&orderby=posts]]></url> 
			<active>1</active>
			<show />
			<parent>pppopular</parent>
			<displayorder>30</displayorder>
		</link>
		<link name="ppstats" date="1337938859" username="Kym" version="3.01"> 
			<url><![CDATA[{options.gallery_url}/stats.php{session.sessionurl_q}]]></url> 
			<active>1</active>
			<show>stats</show>
			<parent>pppopular</parent>
			<displayorder>40</displayorder>
		</link>
		<link name="ppupload" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/upload.php{session.sessionurl_q}]]></url>
			<active>1</active>
			<show>member</show>
			<parent>pptabgallery</parent>
			<displayorder>60</displayorder>
		</link>
		<menu name="ppsearch" date="1337938859" username="Kym" version="3.01">
			<active>1</active>
			<show>search</show>
			<parent>pptabgallery</parent>
			<displayorder>70</displayorder>
		</menu>
		<link name="ppsearchadv" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/search.php{session.sessionurl_q}]]></url> 
			<active>1</active>
			<show>search</show>
			<parent>ppsearch</parent>
			<displayorder>10</displayorder>
		</link>
		<link name="ppmoderate" date="1337938859" username="Kym" version="3.01">
			<url><![CDATA[{options.gallery_url}/moderate.php?{session.sessionurl}do=moderate]]></url> 
			<active>1</active>
			<show>modoptions</show>
			<parent>pptabgallery</parent>
			<displayorder>80</displayorder>
		</link>
	</navigation>
 
 
ikopylov
Гуру
vBSNews
 
ikopylov's Avatar
Default
0

Quote:
Originally Posted by Whity View Post
речь об этом?
Увы не помогло...

Если у вас есть доступ к этому посту
опубликуйте содержимое и аттач
Спасибо
 


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




All times are GMT +4. The time now is 06:55 AM.


Powered by vBulletin® Version 3.0.9
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.