Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Intro Black Friday Offer for a lifetime*

PonyTab released (User Pics in Ponygallery)

  • mcsmom
  • mcsmom
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 2
18 years 10 months ago #3896 by mcsmom

I had a thought if we could add the ability to add photos from the tab itself maybe at the top. I plan to edit it and just add a link there to take them to the upload page, but if there was a better option that might be kinda cool.


That's what I did by editing the tab description. However, you need to add this line:

if($tab->description != null) $return .= "\t\t<div class=\"tab_Description\">".unHtmlspecialchars(getLangDefinition($tab->description))."</div>\n";

I've had to do this to a couple of other plugins as well. I find it helpful to put instructions in the descriptions. Also, for example for mamblog, I added a link to the main mamblog page and also one to the logeed in user's blog.

Please Log in or Create an account to join the conversation.

  • lennox
  • lennox
  • OFFLINE
  • Posts: 148
  • Thanks: 0
  • Karma: 53
18 years 10 months ago #4152 by lennox
lennox wrote:

:( :(
Warning: getimagesize(http://MYSITE/components/com_ponygallery/img_pictures/originals/user_64_samura6.jpg): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /var/www/html/MYSITE/components/com_ponygallery/sub_viewdetails.php on line 134
ERROR: Source file not found!


first:
[code:1]PHP-Code:
# show picture

$imgfilename_ori = 'originals/' . $imgfilename;
$imginfo = getimagesize($picturepath . $imgfilename_ori);

if ($imginfo == null)
die(_PONYGALLERY_FOUR_ERR);[/code:1]


change to:
[code:1]PHP-Code:
# show picture

$imgfilename_ori = 'originals/' . $imgfilename;
$imginfo = getimagesize($mosConfig_absolute_path . '/components/com_ponygallery/img_pictures/' . $imgfilename_ori);

if ($imginfo == null)
die(_PONYGALLERY_FOUR_ERR);
[/code:1]
found the solution :)

Post edited by: lennox, at: 2006/01/18 13:19

Post edited by: lennox, at: 2006/01/18 13:20


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

Please Log in or Create an account to join the conversation.

  • lennox
  • lennox
  • OFFLINE
  • Posts: 148
  • Thanks: 0
  • Karma: 53
18 years 10 months ago #4154 by lennox
mmm, ok, ponygallery tab is running now.
:) Finally.

Now i wan't a link in the tab for the user to upload.
Any progress?

A other piece of code that displayed with a zoom tab. (just for example)


[code:1]if($user->id == $my->id)
{
$database->setQuery("select id from #__menu where link='index.php?option=com_zoom'"«»);
$Itemid=$database->loadResult();

$tablabelUpload = "<a href=\"index.php?option=com_zoom&Itemid=$Itemid&page=upload&formtype=multiple\">$zOOm_upload_link_text</a>";[/code:1]

}

I'm not good with PHP, but i think it's not difficult for someone with knowledge PHP,

I think we must use this code ? if($user->id == $my->id
And then refer to the link:
index.php?option=com_ponygallery&func=showupload

Am i Right or wrong?

Post edited by: lennox, at: 2006/01/18 13:26


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

Please Log in or Create an account to join the conversation.

  • hypnotoad
  • hypnotoad
  • OFFLINE
  • Posts: 66
  • Thanks: 0
  • Karma: 20
18 years 10 months ago #4169 by hypnotoad
Replied by hypnotoad on topic Re:PonyTab released (User Pics in Ponygallery)
Great you solved your error in PonyGallery!

I think we must use this code ? if($user->id == $my->id
And then refer to the link:
index.php?option=com_ponygallery&func=showupload

Yes, this sounds definately right.

At my site, the user has a menu item in the "Edit"-menu of CB which links to his gallery User Pannel, I think it's better there.
But I will insert a link to the upload page, which can be optionally disabled.

I think you can count on all proposed changes implemented by the weekend!
(also the description, as proposed by "mcsmom"; great idea!)

CB 3rd Party Developer: jAwards | GalleryTab for CB (Ponygallery, ML)

Please Log in or Create an account to join the conversation.

  • lennox
  • lennox
  • OFFLINE
  • Posts: 148
  • Thanks: 0
  • Karma: 53
18 years 10 months ago #4174 by lennox
mmm... Wait a sec... What im talking about :P
User link in photo tab?
No! That is not logical!
We have a super nice and clean menu in the top of a profile.
Let's intergrate the link to the usersystem in the cbmenu!
Under the icon: Upload photo
:) :) :):)


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

Please Log in or Create an account to join the conversation.

  • lennox
  • lennox
  • OFFLINE
  • Posts: 148
  • Thanks: 0
  • Karma: 53
18 years 10 months ago #4178 by lennox
To have a icon in the CB menu in you're profile for the photo upload function for the ponytab please follow this steps :)

cb.menu.php (components/comprofiler/plugin/user/pluginmenu or something like that :)

Just add this code after line 834 (You can put it in a other place)

[code:1]// PONYTAB!:
$mi = array(); $mi["_UE_MENU_EDIT"]["_UE_MENU_PONY"]=null;
$this->menuBar->addObjectItem($mi, _UE_MENU_PONY,sefRelToAbs($ue_pony_url), "",
"<img src=\"".$adminimagesdir."newavatar.gif\" alt='' />","", _UE_MENU_UPDATEPROFILE_DESC,""«»);[/code:1]

Then go to line :780 (URL STRING)
And at this line:
[code:1]$ue_pony_url = "index.php?option=com_ponygallery&func=showupload";[/code:1]

Then open the lang. file from comprofiler:
and make a new line:
[code:1]DEFINE('_UE_MENU_PONY','Upload a picture in the album');[/code:1]


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum