Jump to content

weelow

Member
  • Content Count

    50
  • Joined

  • Last visited

Community Reputation

3 Neutral

1 Follower

About weelow

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Is there a native option in WHMCS that prevents reopening tickets from the customer dashboard? I only noticed the prevent reopening through email replys but they can still reopen it from within their account which defeats the purpose of this option.
  2. I am stuck on the same issue, if anyone found a solution for updating the order summary using radio buttons please share your success.
  3. In your whmcs installation go to /lang/overrides/english.php if the file is not there create it in this location Go to this file and search for "Total Due Today" /lang/english.php it be like this in that file $_LANG['ordertotalduetoday'] = "Total Due Today"; make a copy of the line above and paste it in the file you created here "/lang/overrides/english.php" replace the word "Total Due Today" to "Balance" It should look like this $_LANG['ordertotalduetoday'] = "Balance"; The end result of the file should look like this <?php if (!defined("WHMCS")) die("This file cannot be accessed directly"); $_LANG['ordertotalduetoday'] = "Balance";
  4. Hello There is an app I am trying to integrate to WHMCS and the app has a php SDK via composer. How can i pull the sdk from composer to the module, so i can use its namespaces without breaking WHMCS?
  5. Regarding resting the default gateway i do that using update client api the real issue for me here is i have to manually refresh the invoice for the old default payment method to get updated and replaced by the new one. Is there any way to refresh the invoice after this update? header("Refresh:0"); this works but will refresh indefinitely.
  6. Hello I got it working and I am going to start turning it into a module and share it in the market place for anyone interested.
  7. Did you try choosing the hook point you want and type in it var_dump($vars); This will print all the variables available for use, then when you open that page. Use the find option of your browser and search for currency to see what you are getting. You can then use this variable in your hook.
  8. That is exactly what I have in mind. It is really not useful to have this kind of announcement system when all announcements on what'sapp have the same title. Announcement-company. 😅. I just want to make it more useful.
  9. I dumped the $vars to attempt to find the right one but I didnt spot this one. I will trying applying it and tell you how it goes. The reason I want to do that is for sharing the article on social media or whatsapp I want to be able to add the default og:image and og:title and so on. Later on a module can be developed that adds feature to the announcement for SEO title and description. But I needed the right $vars to pull the article ID or anything useful to perform additional ditect database query or add a new seo table and relate them. But for the time being have a proper title and an image will suffice for social media sharing. Thanks Kian.
  10. Hello, I am trying to find an easy way to change the announcements page title according to the article title, just like knowledge base, and maybe excerpt the data to get a summary for the description for the purpose of SEO. Any ideas? The plugin below, is what i want to achieve. It is no longer available but you can check the screen shots to get an idea. https://marketplace.whmcs.com/product/3887-hook-announcement-and-product-title
  11. You could create a module that reads from the database of the announcement table tblannouncements, and and use router to handel the urls or use the apache server url rewrite feature to do that for you.
  12. There is a feature request for this, be sure to vote. https://requests.whmcs.com/topic/announcements-base-image-upload-just-like-the-knowledge-base-image-upload
  13. I will try and do that, give me a few days.
  14. If anyone is looking for how to do this, click the link below. If any moderator is reading, kindly close this ticket. Thanks
  15. This is how I would do it. replace YOURTABLE with your table name and .COL with your column name and you can add as much as you link just add {$HTMLpagePagination} somewhere in your returned html code. This is compatible with bootstrap so you can play with the classes to change the design. $record_count = Capsule::table('YOURTABLE')->count(); $offset=10; $offsets=$record_count/$offset; if (!$_REQUEST['page']){$page = 1;}else{$page = $_REQUEST['page'];} if ($record_count != null) { $record_list = Capsule::table('YOURTABLE') ->select('YOURTABLE.COL1','YOURTABLE.COL2') ->offset(($page-1)*$offset) ->limit($offset) ->get(); } $HTMLpagePagination = ""; if ($record_count < $offset+1){ $HTMLpagePagination .= '<div class="clearfix">'; $HTMLpagePagination .= '<div class="hint-text pull-left">Showing <b>'.$record_count.'</b> out of <b>'.$record_count.'</b> pages</div>'; $HTMLpagePagination .= '</div>';} if ($record_count > $offset){ $HTMLpagePagination .= '<div class="clearfix">'; if ($page*$offset<$record_count){$HTMLpagePagination .= '<div class="hint-text pull-left">Showing <b>'.$page*$offset.'</b> out of <b>'.$record_count.'</b> pages</div>';} else{$HTMLpagePagination .= '<div class="hint-text pull-left">Showing <b>'.$record_count.'</b> out of <b>'.$record_count.'</b> pages</div>';} $HTMLpagePagination .= '<ul style="margin:0px 0px" class="pagination pull-right">'; if ($page<2){$HTMLpagePagination .= '<li class="page-item disabled"><a href="#">Previous</a></li>';} else{$HTMLpagePagination .= '<li class="page-item"><a href="'.$modulelink.'&page='.($page-1).'">Previous</a></li>';} if ($page-2>0){$HTMLpagePagination .= '<li class="page-item"><a href="'.$modulelink.'&page='.($page-2).'" class="page-link">'.($page-2).'</a></li>';} if ($page-1>0){$HTMLpagePagination .= '<li class="page-item"><a href="'.$modulelink.'&page='.($page-1).'" class="page-link">'.($page-1).'</a></li>';} $HTMLpagePagination .= '<li class="page-item active"><a href="'.$modulelink.'&page='.($page).'" class="page-link">'.($page).'</a></li>'; if ($page+1<$offsets+1){$HTMLpagePagination .= '<li class="page-item"><a href="'.$modulelink.'&page='.($page+1).'" class="page-link">'.($page+1).'</a></li>';} if ($page+2<$offsets+1){$HTMLpagePagination .= '<li class="page-item"><a href="'.$modulelink.'&page='.($page+2).'" class="page-link">'.($page+2).'</a></li>';} if ($page+1<$offsets+1){$HTMLpagePagination .= '<li class="page-item"><a href="'.$modulelink.'&page='.($page+1).'" class="page-link">Next</a></li>';} else{$HTMLpagePagination .= '<li class="page-item disabled"><a href="#" class="page-link">Next</a></li>';} $HTMLpagePagination .= '</ul>'; $HTMLpagePagination .= '</div>'; If you need any further help or explanation. please do not hesitate to ask, I am willing to help. Good luck
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated